adding temperature taking code