 
 void goingToSleep()
 {
-  ESP.deepSleep(300000000);
+  if (DEBUG_PRINT) {
+    ESP.deepSleep(20000000);
+  } else {
+    ESP.deepSleep(300000000);
+  }
   delay(250);
 }
 
 boolean sendmqttMsg(char* topictosend, String payload)
 {
-
   if (client.connected()) {
     if (DEBUG_PRINT) {
       Serial.print("Sending payload: ");

  payload += ",\"totalmillis\":";
  payload += (millis() - startMills) ;
  payload += ",\"wifiMills\":";
  payload += wifiMills ;  
  payload += "}";

  if (sendmqttMsg(topic, payload)) {
      if (DEBUG_PRINT) {
        Serial.print("payload pub  ----> ");
        Serial.println(millis() - startMills);
      }
      goingToSleep();
  }  

  if ((millis() - startMills) > 15000) {
    if (DEBUG_PRINT) {
      Serial.println("going to sleep with fail");
    }
    goingToSleep();
  }


String clientName;

float tempCoutside ;
float tempCinside ;

int vdd;

