added sendNewTemp() to the previous commit