To make sure your photoelectric sensor is reliable, set its temperature to -25°C~55°C. In order for these electronic components to work, they should be given 10V~30V voltage. The ideal response time for a photoelectric sensor is 5ms. The 2 pins on the photoelectric sensor need to be connected for it to work.