A spirometer is a diagnostic device that measures the amount of air you’re able to breathe in and out. It also tracks the time it takes you to exhale completely after you take a deep breath. A spirometry test requires you to breathe into a tube attached to a machine called a spirometer.