Temperature is a measure of the average kinetic energy of particles in a substance. It is expressed on comparative scales like Celsius, Fahrenheit and Kelvin. Thermometers use materials like mercury that expand with increasing heat to measure temperature. Temperature inversions occur when warm air is above cooler air near the surface, trapping pollutants. Inversions impact air quality by preventing the dispersion of pollution. Clouds also impact temperature by reflecting sunlight to lower maximum temperatures while trapping heat at night to raise minimums.