 #endif
       }
     }
+    ESP.wdtEnable(1000);
   }
 }
 


  if (millis() - lastPublish >= (publishInterval * 1000UL) || lastPublish == 0 || sensor.force()) {
    lastPublish = millis();
    if (!sensor.publish()) {
      lastPublish -= (publishInterval * 1000UL); // reading failed, give it another try in 2 seconds
      lastPublish += 2000UL;

  Serial.begin(115200);
  Serial << endl << endl;

  Homie_setFirmware("homie-dht", "0.0.3");
  Homie_setBrand("homie-dht");
  Homie.setSetupFunction(setupHandler).setLoopFunction(loopHandler).onEvent(onHomieEvent);
  Homie.disableLedFeedback();
