Breathing and lung volumes

The diaphragm and rib muscles enlarge the chest so the pressure in the lungs falls below the air outside and air flows in, as Boyle's law predicts, and a spirometer measures the volumes moved.

From Anatomy and Physiology.