Impact of Sensing and Occupancy Parameters on Achieving Comfort and Demand Side Management in Buildings