Using Occupancy To Reduce Energy Consumption Of Buildings