Question: what layers of the atmosphere does temperature increase?
Answer: The troposphere gets its heat from the ground, and so temperature decreases with altitude. Warm air rises and cool air sinks and so the troposphere is unstable. In the stratosphere, temperature increases with altitude. The stratosphere contains the ozone layer, which protects the planet from the Sun's harmful UV.