 const int pin_read = 2;
 const char* server = "api.thingspeak.com";
 
+DHT dht(pin_read, DHT11);
+
 int sent = 0;
 
 #define SLEEP_TIME 1200 * 1000 * 1000
 
 void setup() {
   Serial.begin(115200);
+  dht.begin();
+  
   pinMode(pin_clk, OUTPUT);
   pinMode(pin_soil, INPUT);
   pinMode(pin_led, OUTPUT);

   }//end if
   sent++;
   client.stop();
}

  float hum=0,temp=0,soil_hum=0;
  Serial.println("Requesting Temperature and Humidity...");
  

  hum = dht.readHumidity();
  // Read temperature as Celsius (the default)
  temp = dht.readTemperature();

  delay(1000);
  soil_hum = readSoilVal(8);
  Serial.print("Soil_Humidity:");
