 #include "DHT.h"
 
 //WiFi setup
+//replace with your values
+byte ip[]        {192,168,1,14};
+byte dns[]       {192,168,1,1};
+byte gateway[]   {192,168,1,1};
+
+//replace with your values
 #define ssid       "......."
 #define password   "......."
 
 //Thingspeak setup
+//replace with your values
 #define thingspeakApiKey "................"
 #define thingSpeakAddress "api.thingspeak.com"
 #define thingSpeakUpdateJsonEndpoint "/update.json"
 #define thingSpeakHttpPort 80
-//Update data for the specific channel not frequently than 16 sec
-#define thingSpeakUpdateInterval 16000
-//Update data for the specific channel if it's the same not frequently than 5 mins
-#define thingSpeakUpdateSameDataInterval 300000 //5 min
+//Update data for the specific channel not frequently than 30 sec
+#define thingSpeakUpdateInterval 50000000
 
 //DHT22
 #define DHTTYPE DHT22

}

void loop() {
  //setup wifi
  //in loop to re init connection if necessary
  setupWifi();

  // Reading temperature or humidity takes about 250 milliseconds!
  // Sensor readings may also be up to 2 seconds 'old' (its a very slow sensor)

  if (!isnan(h) && !isnan(t)) {
    // Compute heat index in Celsius (isFahreheit = false)
    float hic = dht.computeHeatIndex(t, h, false);

    Serial.println();
    Serial.print("Humidity: ");
    Serial.print(h);
    Serial.print(" %\t");
