Wireless Sensor Network for Energy and Environmental Monitoring: Helping Old Buildings Go Green