added in smart control functions for temperature