put in the code for a max temp and a log of it