Flexi Says: The temperature of the air also changes with altitude. Air temperature measures the heat energy of air molecules. Thermometers measure temperature. In an old-style mercury thermometer, mercury is placed in a long, very narrow tube with a bulb. Because mercury is temperature sensitive, it expands when temperatures are high and contracts when they are low. A scale on the outside of the thermometer matches up with the air temperature. Some modern thermometers use a coiled strip composed of two kinds of metal, each of which conducts heat differently. As the temperature rises and falls, the coil unfolds or curls up tighter. Other modern thermometers measure infrared radiation or electrical resistance. Modern thermometers usually produce digital data that can be fed directly into a computer.