A fire alarm is like a super loud noise maker. It can sense smoke and heat, and when it does, it makes a really loud sound that alerts everyone that there is a danger, like a fire. This loud noise helps people know that they need to leave the building so they don't get hurt by the fire.