Clinical digital spirometer