Detecting problems in buildings using infrared cameras