 	// We need to report to the MQTT Server
 	while (!mqtttimeout) {
 	  if(mqttconnect() != 0){
-		  Serial.println("Unable to connect to MQTT Server " + mqttfailcount + " tries");
+		  Serial.println("Unable to connect to MQTT Server ");
+		  Serial.println(mqttfailcount);
 		  delay(1000);
 	      mqttfailcount++;
 	  } else {

	  
  

  Serial.println("Sleep for " + sleepinterval + "s");

  digitalWrite(REDLED, LOW);
  digitalWrite(GREENLED, LOW);

	  }
	  
	  if(mqttfailcount >= 30 ){
		  Serial.println("Giving up MQTT connection"" );
		  mqtttimeout = true;
	  }
	  
	  
	}
	
	if(mqttconnectsuccess){
	  // Connect to MQTT Server
	  //client.connect(mqttclientname.c_str(), mqttusername.c_str(), mqttpassword.c_str() );
	  //Following is original
