 }
 
 void loop ( void ) {
-  digitalWrite ( ledWiFi, 0 );
+//  digitalWrite ( ledWiFi, 0 );
   server.handleClient();
-  temperature_data = hdc.readTemperature();
-  humidity_data = hdc.readHumidity();
+  
+  getWiFiAddress();
+  
+  float currentTemp = hdc.readTemperature();
+  float currentHumidity = hdc.readHumidity();
   
   Serial.print("Temp: "); 
-  Serial.print(temperature_data);
+  Serial.print(currentTemp);
   Serial.print("C / ");
-  Serial.print(temperature_data * 9/5 + 32);
+  Serial.print(currentTemp * 9/5 + 32);
   Serial.print("F"); 
   Serial.print("\tHum: "); 
-  Serial.println(humidity_data);
+  Serial.println(currentHumidity);
 
   // Publish data
 //  mqttPublish();
 
+//  digitalWrite ( ledWiFi, 1 );
 //  delay(180000); // 3 minutes
-  digitalWrite ( ledWiFi, 1 );
 //  delay(30000); // 30 seconds
+  delay(500); // .5 seconds
 }
 

  
	server.on ( "/", handleRoot );
  server.on ( "/temperature", handleTemperature );
  server.on ( "/humidity", handleHumidity );
	server.on ( "/inline", []() {
		server.send ( 200, "text/plain", "this works as well" );

  Serial.begin ( 115200 );
  
  // Connect to Wifi
  connectWiFi();

  // connect to adafruit io
//  mqttConnect();
  
  Serial.println("Setting up HDC100x...");
  Wire.begin(hdc_sda, hdc_scl);
  if (!hdc.begin()) {
