To make sure the photoelectric sensor works, set its temperature to zero. It is necessary to provide these electronic components with a voltage of 0 to make them work in a circuit or system. A photoelectric sensor with a response time of 1ms is considered to be ideal.