logic to hold fan temperature