To make sure your photoelectric sensor is reliable, set its temperature to -20°C~55°C. It's important that 10V~30V is applied to the circuit or system for these components to work. For photoelectric sensors, 1ms is ideal. The photoelectric sensor must have the 2 pins connected to work properly.