   }
 }
 
-//Obtained from https://learn.adafruit.com/tmp36-temperature-sensor/using-a-temp-sensor
 float getTemperature(){
   //There is only one sensor on the bus so just use the first one
   dallasTemp.requestTemperaturesByIndex(0);


// Pass our oneWire reference to Dallas Temperature.
DallasTemperature dallasTemp(&oneWire);

U8G2_UC1701_MINI12864_F_4W_SW_SPI u8g2(U8G2_R2, 21, 20, 19, 22);
CTSensor clamp(PIN_CT, CT_CALIBRATION_VALUE);

    Serial.println("Enter Max Temp mode");
  }

  float temperature = 0;//getTemperature();

  //We remain in this mode until the temperature drops below TEMP_WARN to prevent oscillating into this mode and out
  if(temperature >= TEMP_WARN){
