What is the scientific principle that Infrared Roof scans are based upon?

Infrared roof scans are based on the fact that as the roof heats up from sun exposure, the roof and moisture under the roof heat up. Then as the roof cools to the night sky, the roof membrane cools down and the moisture under the roof retains it’s heat a little longer. That temperature differential is evident with an infrared camera.