The medulla oblongata detects the levels of oxygen and carbon dioxide concentrations and signals the muscles in the heart, the lungs and diaphragm to increase or decrease thebreathing. The pons controls the speed of inhalation and exhalation orrespiration rate depending on the need of the body.