Typically performed by a professional with training. An infrared scan uses specialized equipment at dusk to determine if moisture is in the roof system. The basic premise is that water cools at a slower rate than dry material. As the sunlight dissipates the camera will show the difference in temperature. The roof should be marked along with a detail report submitted.