 void setup() {
 
   pinMode(PIN_LED, OUTPUT);
+  pinMode(PIN_BUZZER, OUTPUT);
+
   pinMode(PIN_RELAY_LIMITER, OUTPUT);
   pinMode(PIN_RELAY_MCB, OUTPUT);
   pinMode(PIN_BUTTON_ENTER, INPUT);

#define PIN_CT A0
#define PIN_BUTTON_ENTER 24
#define PIN_TEMP A11

#define PIN_RELAY_MCB 5
#define PIN_RELAY_LIMITER 7

#define CT_CALIBRATION_VALUE 60.6  // (100A / 0.05A) / 33 ohms
#define INITIAL_SETTLE_TIME 15000 //15 seconds

void loop() {

  double currentValue = getCurrentMeasurement();
  
  if(currentValue >= CURRENT_MCB_CUT){
    nextState = enterMCBTrippedMode(currentValue);
  }
