Respiratory diseases are diagnosed and controlled by measuring the lung function of patients. Spirometry is the main test to evaluate many respiratory diseases such as asthma or chronic obstructive pulmonary disease and requires the use of face masks or mouthpieces.