Added stdout flush to airsensor