Photoelectric sensors should be set at -20°C~60°C for reliable performance. In order for these electronic components to work, they should be given 10V~30V voltage. A photoelectric sensor is considered ideal if its response time is 1ms. To make the photoelectric sensor work, you have to connect the 4 pins.