The Principle function of the respiratory system are
Ventilate the lungs
Extract oxygen from air and transfer it into bloodstream
Excrete carbon dioxide and water vapour.
Maintain the acid base of the blood.