     wifi_connect();
   }
 
-  if ((millis() - sentMills) > ( REPORT_INTERVAL / 2) ) {
+  if ((millis() - sentMills) > ( 700) ) {
     unsigned long emonmillis = millis();
-    VIrms = emon1.calcIrms(1480) * 220.0;
+    //VIrms = emon1.calcIrms(1480) * 220.0;
+    VIrms = emon1.calcIrms(2960) * 220.0;
     calcIrmsmillis = millis() - emonmillis;
 
     ave.push(VIrms);

    return;
  }

  /*
    if (( millis() - startMills ) < ( revMills / 5 )) {
    return;
    } else {
    revMills   = (millis() - startMills)  ;
    startMills = millis();
    irStatus   = !irStatus ;
    revCounts++;
    }
  */

  revMills   = (millis() - startMills)  ;
  startMills = millis();
  irStatus   = !irStatus ;
  revCounts++;

}



void IRCHECKING_START() {
  detachInterrupt(4);
  attachInterrupt(4, count_powermeter, FALLING);
  startMills = millis();
  oldirStatus = HIGH ;
}
