Figure 1a shows a slotted optical switch. An LED is mounted in a plastic housing, facing a phototransistor, but separated by a gap. If something moves into the gap, it blocks the light path between ...