This basic test assesses lung function with a device called a spirometer. The spirometer measures the volume of air in the lungs and patient's ability to move air in and out. It can be used to help find the cause of common symptoms such as cough and shortness of breath.