There are many different ways smoke detectors detect smoke, but a common method involves detecting small particles in the air. If there are enough particles, it considers the air to be smoked, thus triggering the alarm.