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

const int pin_read = 2;
const char* server = "api.thingspeak.com";

int sent = 0;

#define SLEEP_TIME 1200 * 1000 * 1000

void setup() {
  Serial.begin(115200);
  pinMode(pin_clk, OUTPUT);
  pinMode(pin_soil, INPUT);
  pinMode(pin_led, OUTPUT);

  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:");
