The atmosphere is composed primarily of nitrogen and oxygen. It also contains water vapor, ozone, and particulates. Atmospheric pressure decreases with increasing altitude and is measured with a barometer. The layers of the atmosphere include the troposphere closest to Earth where weather occurs, the stratosphere containing most ozone, the mesosphere being the coldest, and the thermosphere where temperatures increase with altitude. Solar radiation enters the atmosphere and is scattered, reflected, absorbed, and contributes to the greenhouse effect, while heat is transferred through conduction and convection.