Spirometry is a simple, painless method to measure lung function or capacity and compare it to the average lung function of a person of the same race, height, weight and age. On the basis of this comparison, it will be determined whether the patient has a lung condition and what type of condition it is.