 {
   // You can open the Arduino IDE Serial Monitor window to see what the code is doing
   Serial.begin(115200);  // Serial connection from ESP-01 via 3.3v console cable
+  // Power on the DHT22 sensor first.
+  pinMode(DHTPWR, OUTPUT);
+  digitalWrite(DHTPWR, HIGH);
   dht.begin();           // initialize temperature sensor
-
+  
   // Connect to WiFi network
   WiFi.begin(WIFI_SSID, WIFI_PASSWORD);
   Serial.print("\n\r \n\rWorking to connect");
   // Wait for connection
   while (WiFi.status() != WL_CONNECTED) {
-    delay(500);
+    delay(250);
     Serial.print(".");
   }
   Serial.println("");
+  Wire.pins(12, 14);
+  if (!bmp.begin()) {
+    Serial.println("BMP init error!");
+  }
   Serial.println("DHT Weather Reading Client");
   Serial.print("Connected to ");
   Serial.println(WIFI_SSID);

// This is for the ESP8266 processor on ESP-01 
DHT dht(DHTPIN, DHTTYPE, 11); // 11 works fine for ESP8266

// Generally, you should use "unsigned long" for variables that hold time
unsigned long previousMillis = 0;        // will store last temp was read
const long interval = 2000;              // interval at which to read sensor



/* DHTServer - ESP8266 Webserver with a DHT sensor as an input

   Based on ESP8266Webserver, DHTexample, and BlinkWithoutDelay (thank you)
