In order for the photoelectric sensor to work reliably, it should be set to -40°C~60°C degrees Celsius. In order for these electronic components to work, their voltage must be set to 10V~30V. It is generally considered that photoelectric sensors have a response time of 2ms. To make the photoelectric sensor work, you have to connect the 5 pins.