Spirometry test is used to assess how well the lungs work by measuring how much air you inhale, how much you exhale, and how quickly you exhale. This test is used to diagnose asthma, chronic obstructive pulmonary disease (COPD) and other conditions that affect breathing.