This family of slotted optical switches, from Optek Technology, are designed to be mounted onto a PCB. . The OPB610 and OPB620 consist of an IR LED and an NPN silicon phototransistor. They have an enhanced low current roll-off which improves the contrast