To make sure the photoelectric sensor works, set its temperature to zero. For these electronic components to function, a voltage of 10V~30V should be applied to a circuit or system. Photoelectric sensors are considered to have an optimal response time of 1ms. 3 pins must be connected for the photoelectric sensor to work.