You should set the photoelectric sensor's temperature to -25°C~55°C for reliable performance. In order for these electronic components to work, their voltage must be set to 12V~24V. A photoelectric sensor with a response time of 1ms is considered to be ideal.