 #define TEMP_MAX 85
 #define TEMP_WARN 70
 #define TEMP_WARNING_RATE 120000 //2 x 60 x 1000ms
+
+#define CT_CALIBRATION_VALUE 60.6  // (100A / 0.05A) / 33 ohms
+#define INITIAL_SETTLE_TIME 20000 //20 seconds
+
+#define BUTTON_DEBOUNCE 300
 
 #define PIN_LED 26
 #define PIN_CT A0

  unsigned long timeElapsedSinceStart;

  while((timeElapsedSinceStart = (millis() - initialTime)) < INITIAL_SETTLE_TIME){
  if(isAtLeastOneButtonPressed()){
    break;
  }
    
    getCurrentMeasurement();
    

  int downPressed = digitalRead(PIN_BUTTON_DOWN);

  if(upPressed == LOW || enterPressed == LOW || downPressed == LOW){

    static unsigned long lastPressedTime = 0;
    unsigned long currentTime = millis();

    if((currentTime - lastPressedTime) > BUTTON_DEBOUNCE){
      lastPressedTime = currentTime;
      return true;
    } else {
      return false;
    }  

  } else {
    return false;
  }
