(a)(1) The State Fire Marshal and the Codes and Standards Committee shall adopt and administer a Fire Safety Code and at any time may amend the same in accordance with the provisions of § 29-292a. The code shall be based on nationally recognized model fire and life safety codes and shall be revised as deemed necessary to incorporate advances in technologies and improvements in construction materials and any subsequent revisions to the model fire and life safety codes not later than eighteen months following the date of first publication of such revisions, unless the State Fire Marshal and the committee certify that a revision is not necessary for such purpose. The code shall provide for reasonable safety from fire, smoke and panic therefrom, in all buildings, structures and areas adjacent to such buildings and structures, except in private dwellings occupied by one or two families and upon all premises. The code shall require (A) carbon monoxide detection and warning equipment in (i) new residential buildings not exempt under the code and designed to be occupied by one or two families for which a building permit for new occupancy is issued on or after October 1, 2005, and (ii) all public or nonpublic school buildings, and (B) smoke detection and warning equipment in residential buildings designed to be occupied by one or more families.

(2) The Fire Safety Code shall require each hotel, motel or inn to install or furnish smoke detection and warning equipment which, when activated, shall provide a visible alarm suitable to warn occupants, in at least one per cent of the units or rooms in such establishment having one hundred or more units or rooms and to install or furnish at least one such visible alarm in establishments having less than one hundred units or rooms.

(b) (1) No certificate of occupancy shall be issued for any residential building designed to be occupied by one or more families, unless the local fire marshal or building official has certified that such building is equipped with smoke detection and warning equipment complying with the Fire Safety Code and State Building Code.

(2) No certificate of occupancy shall be issued for any (A) new residential building not exempt under the Fire Safety Code, or (B) public or nonpublic school building for which a building permit for new occupancy is issued on or after January 1, 2012, unless the local fire marshal or building official has certified that such residential or school building is equipped with carbon monoxide detection and warning equipment complying with the Fire Safety Code and State Building Code.

(c) (1) No municipality, local or regional board of education, or supervisory agent of a nonpublic school, and (2) no employee, officer or agent of such municipality, board of education or supervisory agent acting without malice, in good faith and within the scope of his or her employment or official duties shall be liable for any damage to any person or property resulting from the failure to detect carbon monoxide within a public school building, provided carbon monoxide detection equipment is installed and maintained in accordance with the manufacturer’s published instructions and with the Fire Safety Code.