fixed a bug in the thermometer driver