Trends in building automation: connected sensors for energy efficiency