photoelectric smoke detectors rely on detecting a lack of light to set the alarm off. the light used could be infrared, visible light, or ultraviolet. when smoke blocks out the light inside a photoelectric smoke detector, the smoke detector detects that there is less light. below a certain brightness, whether or not it comes from smoke or not, the photoelectric smoke detector will beep.