test and fix bugs in temperature sensor driver