Added logic for less heating/cooling based on threshold

Added logic for less heating/cooling based on thresholds