   Serial.println(oldrevMills);  
 */
 
-  if ( revMills > 0 ) {
+  if ( revMills > 600 ) {
       revValue = float(( 3600  * 1000 ) / ( 600 * float(revMills) ) ) * 1000 ;
   }
 

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

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


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

