In a spirometry test, while you are sitting, you breathe into a mouthpiece that is connected to an instrument called a spirometer. The spirometer records the amount and the rate of air that you breathe in and out over a period of time. … Other tests require forced inhalation or exhalation after a deep breath.