ROHM’s photointerrupters are a type of optical sensor that can be used to detect rotation and light blockage or transmission, as well as open/close function. They operate based on the principle of optical switches in which light emitting and receiving elements are aligned to each other, and they work by detecting light blockage when an object comes between both elements. Matching the wavelengths of the phototransistor and the light emitting diode eliminates the loss caused by the difference in wavelengths. This can be used to sense the speed of rotation of a motor.