Humidity affects the energy budget and thereby influences temperatures in two major ways. First, water vapor in the atmosphere contains "latent" energy. During transpiration or evaporation, this latent heat is removed from surface liquid, cooling the earth's surface.