   Rtc.Begin();
   Rtc.SetIsRunning(true);
   Rtc.SetSquareWavePin(DS1307SquareWaveOut_1Hz);
-
-  ct1.voltageTX(236.2, 1.7);
-  ct1.currentTX(1, 111.1);
-  ct2.voltageTX(234.26, 1.7);
-  ct2.currentTX(2, 111.1);
-  ct3.voltageTX(234.26, 1.7);
-  ct3.currentTX(3, 111.1);
 
   // interrupt
   attachInterrupt(digitalPinToInterrupt(SQW_PIN), sqw_isr, FALLING);               //  int 0


data sensor_data;

const int CT2 = 1;
const int CT3 = 1;

EnergyMonitor ct1, ct2, ct3;

RtcDS1307 Rtc;

}

void start_measure() {

  if (CT1) {
    sensor_data.ct1_wh = ct1.calcIrms(1480) * 220.0;                         //ct.calcIrms(number of wavelengths sample)*AC RMS voltage
  }
  
  if (CT2) {
    sensor_data.ct2_wh = ct2.calcIrms(1480) * 220.0;
  } 

  if (CT3) {
    sensor_data.ct3_wh = ct3.calcIrms(1480) * 220.0;
  } 

  sensor_data._salt++;

