You'll get reliable performance if the photoelectric sensor's temperature is -20°C~70°C. Into a circuit or system, these electronic components must be given 10V~30V voltage. 4 pins must be connected to the photoelectric sensor for it to function correctly.