Is it correct to have TempSensor twice here?