 #include <Wire.h>
 #include <PubSubClient.h>
 #include "PietteTech_DHT.h"
-#include <RtcDS1307.h>
-
-#define REPORT_INTERVAL 5000 // in msec
+/* rtc
+  #include <RtcDS1307.h>
+*/
+
+#define REPORT_INTERVAL 3000 // in msec
 
 #define SYS_CPU_80MHz 80
 #define SYS_CPU_160MHz 160

}


void ICACHE_RAM_ATTR check_SquareWaveCount() {
  SquareWaveCount++;
}

void setup() {
  delay(20);

  system_update_cpu_freq(SYS_CPU_80MHz);
  startMills = sentMills = millis();
  Wire.begin(0, 2);

        payload += H;
        payload += ",\"Temperature\":";
        payload += T1;

        payload += ",\"SquareWaveCount\":";
        payload += SquareWaveCount;

        // to check DHT.acquiring()
        payload += ",\"acquireresult\":";
        payload += acquireresult;
        payload += ",\"acquirestatus\":";
        payload += acquirestatus;

        /*
          payload += DHT.acquiring();
        */
        payload += ",\"bDHTstarted\":";
        payload += bDHTstarted;
        payload += ",\"FreeHeap\":";
