In order to work reliably, the photoelectric sensor should be set to -40°C~70°C. In order for these electronic components to function, they must be connected to a circuit or system with a voltage of zero. Sensors with a response time of 3ms are considered ideal. Connecting the 4 pins is necessary for the photoelectric sensor to work properly.