To make sure the photoelectric sensor works, set its temperature to zero. This electronic component must have a voltage of 0 in order to function in a circuit or system. Photoelectric sensors are considered to have an optimal response time of 100ms. To make the photoelectric sensor work properly, 5 pins must be connected.