 	
     http.post(request, response, headers);
 	
-    Serial.println("Data sent");
+    //Serial.println("Data sent");
 
 	// do delay
     nextTime = millis() + delayInMillis;
 }
+

// This #include statement was automatically added by the Particle IDE.
#include "HTU21D.h"
#include "application.h"
#include "HttpClient.h"

unsigned int nextTime = 0;    // Next time to contact the server
HttpClient http;
HTU21D htu = HTU21D();

char* serverUrl = "192.168.43.219";
char* clientId = "photo1";
char* requestBody = "{ \"name\":\"%s\", \"weatherData\": { \"temperature\":\"%f\", \"humidity\":\"%f\" } }";


        return;
    }

	//Serial.println("Application>\tStart of Loop.");
		
    float temperature = htu.readTemperature();
    float humidity = htu.readHumidity();
	
	//Serial.println("Temperature: %f, Humidity: %f", temperature, humidity);

    //Serial.println("Sending data...");
	
	char payload[128];
    snprintf(payload, sizeof(payload), requestBody, clientId, temperature, humidity);
