Measuring temperature with thermistors