Spirometry is a type of breathing test. It is a painless test often used to find the cause of lung problems.