Getting false estops again. First time it was swarf getting on switch contacts. Easily remedied. Now getting spooky random e-stops for no apparent reason.
One cause could be momentary induction on the 5v limit switch wires, so I read that bumping them to 24v is the solution . . again easy enough.
I'm at 'Electronics for Dummies' level, so I need some help interfacing the new 24v daisy chain back to the breakout without frying things . . . . again

.
So I would appreciate getting some advice on two possible solutions. First, a part number and wiring instructions for an optoisolator to connect the 24v limit switch loop to the breakout.
Second, I replaced a broken limit switch (don't ask

) with a Cherry brand and it is very inconsistent on homing. I would like to replace all of the mechanical switches with something like the NTE3100 photointerruptor. Would that be a good choice and how would one go about building a circuit out of three of those daisy chained back to the breakout?
Thanks!