 
 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;
   }
 

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

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

  Serial.println(oldrevMills);  
*/

  if ( revMills > 600 ) {
      revValue = float(( 3600  * 1000 ) / ( 600 * float(revMills) ) ) * 1000 ;
  }

