Wireless sensors for distributed monitoring of energy-efficient smart buildings