A pressure gauge operates by measuring the force exerted by a fluid (liquid or gas) against a flexible diaphragm or piston. As the pressure increases, it causes the diaphragm or piston to deform. This deformation is then translated into a mechanical motion, which is displayed on the gauge's scale.
The resulting position of a pointer or digital readout provides a visual indication of the pressure level within the system being monitored.