Spirometry is a simple test to measure the function of the lungs. A spirometry test is used for diagnosis and monitoring of lung diseases.