You should set the photoelectric sensor's temperature to -25°C~55°C for reliable performance. If you want these electronic components to work, you need to apply 10V~30V. It is generally considered that photoelectric sensors have a response time of 5ms.