add thermistor code