Intelligent temperature control