   unsigned long timeElapsedSinceStart;
 
   while((timeElapsedSinceStart = (millis() - initialTime)) < INITIAL_SETTLE_TIME){
-    clamp.doIncrementalMeasurement();
+    getCurrentMeasurement();
+    
     unsigned long timeLeft = INITIAL_SETTLE_TIME - timeElapsedSinceStart;
     unsigned int timeLeftSeconds = timeLeft / 1000;
   

   
  }

  //To clear the accmulated reading
  clamp.getIrmsFromIncrementalMeasurement();
  
  Serial.begin(115200);
  Serial.println("Setup complete");


#define BUZZER_LONG_BEEP_TIME 500

#define CT_CALIBRATION_VALUE 60.6  // (100A / 0.05A) / 33 ohms
#define INITIAL_SETTLE_TIME 20000 //20 seconds

#define DELAY_BEFORE_LIMITER_RELAY_ENABLE 1000

