   Serial.print("Connecting to ");
   Serial.println(ssid);
   
-  WiFi.begin(ssid, password);
+  /*WiFi.begin(ssid, password);
   
   while (WiFi.status() != WL_CONNECTED) {
     delay(500);
     Serial.print(".");
-  }
-  
-  Serial.println("");
-  Serial.println("WiFi connected");  
-  Serial.println("IP address: ");
-  Serial.println(WiFi.localIP());
+  }*/
+  dht.begin();
+  //Serial.println("");
+  //Serial.println("WiFi connected");  
+  //Serial.println("IP address: ");
+  //Serial.println(WiFi.localIP());
 }
 
 

  client.stop();

  // if there's a successful connection:
  if (client.connect(server, 80)) {
    Serial.println("connecting...");
    // send the HTTP PUT request:
    client.println("GET /latest.txt HTTP/1.1");
    client.println("Host: www.arduino.cc");
    client.println("User-Agent: ArduinoWiFi/1.1");
    client.println("Connection: close");
    client.println();

#include <ESP8266WiFi.h>
#include "DHT.h"

#define DHTTYPE DHT22
#define DHTPIN  2

//const char* ssid     = "Livebox-9e38";
//const char* password = "EDE79F89D642E0117543DD28A6";

//const char* ssid     = "Mutualab Coworking 1";
//const char* password = "maintenantautravail";

//const char* ssid     = "DARKSIDE";
//const char* password = "8353481dd463";

const char* ssid     = "SEBHOME_SENSOR";
const char* password = "key_sensor_my";

const char* host = "www.google.fr";
const char* streamId   = "....................";
const char* privateKey = "....................";


 
// server address:
//char server[] = "www.arduino.cc";
char server[] = "192.168.61.1";
//IPAddress server(64,131,82,241);

WiFiClient client;

unsigned long lastConnectionTime = 0;            // last time you connected to the server, in milliseconds
const unsigned long postingInterval = 100L * 1000L; // delay between updates, in milliseconds

float humidity, temp_f;
unsigned long previousMillis = 0;        // will store last temp was read
const long interval = 2000; 
DHT dht(DHTPIN, DHTTYPE,11);

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