(a) As used in this section, “pool alarm” means a device which emits a sound of at least fifty decibels when a person or an object weighing fifteen pounds or more enters the water in a swimming pool.

(b) No building permit shall be issued for the construction or substantial alteration of a swimming pool at a residence occupied by, or being built for, one or more families unless a pool alarm is installed with the swimming pool.