Section 26C. Apartment houses containing six or more dwelling units, hotels, boarding or lodging houses, or family hotels which are not regulated by section twenty-six A or twenty-six B shall be equipped with automatic smoke or heat detectors as provided by the rules and regulations of the board of fire prevention regulations.

The head of the fire department as defined in section one shall enforce the provisions of this section.