I'm thinking about a new project, which without going into detail, will require reading the state of around 40 reed switches. Usually I head straight for the 74HC165 (8 bit parallel in, serial out shift register), but I've noticed on several suppliers sites that they don't stock it any more.
I...