 
 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: ");


String clientName;

  float tempCoutside ;
  float tempCinside ;

int vdd;


  if (client.connect((char*) clientName.c_str())) {
    //
  } else {
    if (DEBUG_PRINT) {
      Serial.println("going to sleep / mqtt con fail");
    }
    //goingToSleep();
  }
  return client.connected();
}
