   Serial.println("Requesting Temperature and Humidity...");
   
   int chk = DHT.read(pin_read);
-  if(chk == DHTLIB_OK){
+  if(chk == 0){
     hum = DHT.humidity;
     temp = DHT.temperature;
     Serial.print("Humidity:");


String apiKey ="<YOUR-API-KEY>";
const char* MY_SSID = "<YOUR-SSID>"; 
const char* MY_PWD = "<YOUR-PASSWORD";

dht11 DHT;



int sent = 0;

#define SLEEP_TIME 1200 * 1000 * 1000

void setup() {
  Serial.begin(115200);
