     olddoorStatus = doorStatus ;
   }
 
-  if (((millis() - sentMills) > REPORT_INTERVAL ) && ( irStatus == oldirStatus ) &&  ( revMills > 600 )) {
+  if (((millis() - sentMills) > REPORT_INTERVAL ) && ( irStatus == oldirStatus )) {
     sendmqttMsg(topic, payload);
     sentMills = millis();
   }
 
-  if (( irStatus != oldirStatus ) && ( revMills > 600 )) {
+  if ( irStatus != oldirStatus ) {
     sendmqttMsg(topic, payload);
     sentMills = millis();
     oldirStatus = irStatus ;

    wifi_connect();
  }

  if ((millis() - sentMills) > ( REPORT_INTERVAL / 2) ) {
    unsigned long emonmillis = millis();
    VIrms = emon1.calcIrms(1480) * 220.0;
    calcIrmsmillis = millis() - emonmillis;

    ave.push(VIrms);

  revValue  = 0 ;
  oldrevMills = 0 ;
  oldrevValue = 0 ;


  //OTA
