Breathing
The body also measures the amount of oxygen in the blood.  If there is not enough oxygen in the blood, the medulla will tell the body to breathe faster, to take in more oxygen.  Once there is enough oxygen in the blood, the medulla will tell the body to breathe slower again.