A manometer is an instrument used to: