Toriccelli also went on to develop the mercury barometer, an instrument used to measure ... and so too does the pressure of air. Many different factors affect the density of air.