This subchapter shall describe the minimum conditions of residential premises and buildings to be used for human occupancy. Every residential building or structure occupied by humans, except as exempted by §§ 4103 and 4105 of this title and its premises shall comply with the conditions and standards herein prescribed when a deviation from such conditions and standards poses an imminent threat to the health, safety and general welfare of the occupants and other persons. The code official may cause periodic inspections to be made of residential buildings and premises to secure compliance with these requirements.