Thermometer function finished and code fixed