Spirometry involves a patient taking a deep breath and then exhaling forcefully into the spirometer. The device measures various parameters, including Forced Vital Capacity (FVC) and Forced Expiratory Volume in one second (FEV1). These metrics are compared against standard reference values to determine if lung function is within normal ranges. Deviations can indicate the presence of respiratory conditions that may require further investigation or treatment.