In the absence of smoke, the beam of light travels in a straight path without coming in contact with the light sensor. However, once the smoke particles enter the photoelectric chamber, the beam of light strikes them and get scattered to hit the sensor. Once the light rays strike the sensor, the alarm is triggered off.