Scientists combine measurements of the earth's temperature from the air above land and the ocean surface collected by ships, buoys, and sometimes satellites. They compare to measurements to what is considered "normal" based on the location and the time. I wouldn't say that there is some giant tool like a giant thermometer. Just data research and comparison. As well as the obvious nature signs about how the overall temperature is changing.