This post details the pitot static system which provides pressure readings to the three pressure-based primary flight instruments: the airspeed indicator, the altimeter, and the vertical speed indicator.
The altimeter is one of the primary flight instruments and is used to measure vertical height. This post covers operating principles and altimeter design.