Interference problem with slotted IR sensors

mikeoz:
Apologies the drawing isn't clear, I'm not sure I know how to do a circuit diagram.

A legible hand drawn schematic is acceptable. Even if you don't know the symbols, you can draw rectangles and write the component name inside and add the connecting wires and label with voltages/signal names. Convention is inputs on left, outputs on right, positive voltages at top, ground/negative at bottom.

Take a picture of the drawing and attach it to a post.