fixed bugs, add the initial value for temperature of sensor