Added temperature control to sketch