You should set the photoelectric sensor's temperature to -20°C~75°C for reliable performance. To make the photoelectric sensor work properly, 3 pins must be connected. A photoelectric sensor can continuously dissipate 250mW when the temperature is specified.