Smoke and gas sensors will detect the gas particles produced during a fire and turns the electricity supply on to trigger fire alarm sounds.