You should set the photoelectric sensor's temperature to -25°C~55°C for reliable performance. In order for these electronic components to work, they should be given 10V~30V voltage. For photoelectric sensors, 5ms is considered an ideal response time.