Updated to use thermo sensor.