 
 void count_powermeter()
 {
-  long removebounce ;
   // 600 rev/kWh --> 1 rev 6 sec 1kW
   // max A : 40
   // 220 V * 45A = 9900, 
   // 0.6sec -> 10kW
   // 
    
-  if (( millis() - startMills ) < 500 ) {
+  if (( millis() - startMills ) < 600 ) {
     return;
   }
 

  }


  if (((millis() - sentMills) > REPORT_INTERVAL ) && ( revMills > 0 )) {
    sendmqttMsg(payload);
    sentMills = millis();
  }

  if ( revMills > 0 ) {
    delay(int(float(revMills)/10));
  }else {
    delay(100);

    payload += ( revMills + oldrevMills ) / 2 ;
    payload += "}";

  if (( IRSTATUS != OLDIRSTATUS ) && ( revMills > 600 )) {
    sendmqttMsg(payload);
    sentMills = millis();
    OLDIRSTATUS = IRSTATUS ;
