add thermometer code