Spirometry measures the amount of air entering and leaving the lungs. The technician performs this simple test using a computerized instrument. This machine measures airflow that passes through the machine. The patient inhales deeply and then completely exhales through the machine. This is a valuable screening test that can identify obstructive diseases (asthma, emphysema) or restrictive diseases (fibrosis).