Added thermistor calculation