Small bug fixes and temperature sensor support