It is a sensor that integrates a transmitter and a receiver. When an object to be detected passes by, the object reflects a sufficient amount of light emitted by the photoelectric switch transmitter to the receiver, so the photoelectric switch A switching signal is generated. When the surface of the object to be detected is bright or its reflectivity is extremely high, the diffuse reflection photoelectric switch is the preferred detection mode.