Spirometry is a test used to assess how well your lungs work by measuring your air inhalation and exhalation.