Spirometry is a type of pulmonary function test. It determines how well your lungs work by measuring how much air goes into and out of your lungs when you breathe. The spirometer is a device used to help you keep your lungs healthy. Using an incentive spirometer teaches a patient to take slow, deep breaths and can be helpful to maximize lung capacity.