Answer: Your brain constantly gets signals from your body which detect the amount of oxygen and carbon dioxide in your blood. Your brain will send signals to the muscles involved in breathing and adjust your breathing rate depending on how active you are.
HOPE THIS HELPED HAVE A WONDERFULL DAY!
Breathing is an automatic and rhythmic act produced by networks of neurons in the hindbrain (the pons and medulla). The neural networks direct muscles that form the walls of the thorax and abdomen and produce pressure gradients that move air into and out of the lungs.
Hope this helps!!!!
A concentration gradient must exist. hope this helps