         }
       }
     } else {
+      if (bDHTstarted) {
+        if (!DHT.acquiring()) {
+          acquireresult = DHT.getStatus();
+#if defined(DHT_DEBUG_TIMING)
+          printEdgeTiming(&DHT);
+#endif
+          if ( acquireresult == 0 ) {
+            T1 = DHT.getCelsius();
+            H  = DHT.getHumidity();
+          }
+          bDHTstarted = false;
+        }
+      }
+
       if (timeStatus() != timeNotSet) {
         if (now() != prevDisplay) { //update the display only if time has changed
           prevDisplay = now();

const char* otapassword = OTA_PASSWORD;

//
IPAddress mqtt_server = MQTT_SERVER;
IPAddress time_server = MQTT_SERVER;
//
//RtcDS3231 Rtc;

#define DEBUG_PRINT 0

char* topic = "esp8266/arduino/s03";
//char* subtopic = "#";

  delay(20);

  //--
  T2 =  OT = PW = NW =  dustDensity = 0 ;
  PIR = HO = HL = moisture = unihost = rsphost = unitot = rsptot = 0;
  msgcallback = false;
  lastReconnectAttempt = 0;
