Optimizing Hvac Systems Using Occupant Detection And User Thermal Preferences