Normally, as you go up into the atmosphere, temperature decreases with height. But this is not always the case. The atmosphere is made up of many different layers that have different characteristics.
Temperatures in the atmosphere generally decrease with increasing height, but occasionally one can find layers in which temperatures actually increase with height – an “inversion” of the normal ...