smoke alarm is used for detecting smoke.