To make sure your photoelectric sensor is reliable, set its temperature to -20°C~70°C. It's important that 10V~30V is applied to the circuit or system for these components to work. In order to make the photoelectric sensor work properly, it must have 4 pins connected.