Photoelectric sensor is controlled by converting changes in light intensity into changes in electrical signals. It is generally composed of three parts, which is divided into transmitter, receiver and detection circuit. The transmitter is aimed at the target and emits a light beam, which generally originates from semiconductor light sources, light emitting diodes (LEDs) and laser diodes. The beam is fired uninterrupted, or the pulse width is changed. The receiver consists of photodiodes or phototransistors. In front of the receiver, optical elements such as lenses and apertures are installed. Behind it is the detection circuit, which filters out the valid signal and applies it. The through beam type is that the transmitting end emits red light or infrared light, and the receiving end receives it.

