What happens when we move vertically upwards from the earth?

The air gets thinner and cooler.