A photoelectric sensor is used to discover the absence, distance, or presence of an object by using a light transmitter and a photoelectric receiver.