Answer:
The neural networks are in charge of this function.
Explanation:
The neural networks make the muscles that form the walls of the thorax and abdomen produce pressure gradients that push air into and out of the lungs. The respiratory rhythm and the length of each round of respiration are set by reciprocal stimulatory and inhibitory connection of these brain-stemmed neurons.
Hope this helps!