For reliable performance, set the photoelectric sensor's temperature to zero. It is necessary to provide these electronic components with a voltage of 0 to make them work in a circuit or system. This photoelectric sensor can only function properly if the 4 pins are connected.