Fixed the temprature update to be functioning