What does a fire alarm do?

The fire alarm's main objective is to 'alarm' people when there is a fire in a building (most found in public areas like schools, rooms with high fire rates, and skyscrapers.) The ones in big buildings connect to the water supply, so the water is able to stop the fire.