created code to measure Thermistor resistance