Smart building sensors powered by machine learning