Homeostasis is the ability of the body to maintain internal balance despite changing external conditions. How does the respiratory system help maintain homeostasis?