Spirometry is a common pulmonary function test that measures lung function, specifically the volume and speed of air that can be inhaled and exhaled. It is essential for diagnosing conditions like asthma, chronic obstructive pulmonary disease (COPD), and other disorders affecting breathing.