If any chimney, flue or heating apparatus on any premises shall, in the opinion of the inspector, endanger the premises, the inspector shall at once notify in writing the owner or agent of such premises. If such owner or agent fails for a period of five days after the service of such notice upon him to make such chimney, flue or heating apparatus safe, he shall be liable to a fine of not less than ten dollars nor more than fifty dollars for each day that the condition remains uncorrected.