 //------------------------------------------------------------------------------------------------
 
 // PIN DEFINITION CONSTANTS
-const int I2C_SDA = 0;      //I2C bus data pin (SCL). ESP-12E "D3" GPIO0
-const int I2C_SCL = 14;     //I2C bus clock pin (SCL). ESP-12E "D5" GPIO14
-const int alertPin = 5;     //TMP102 alert pin. ESP8266 "D1" GPIO5
+const int I2C_SDA = 4;      //I2C bus data pin (SCL). ESP-12E "D1"
+const int I2C_SCL = 5;     //I2C bus clock pin (SCL). ESP-12E "D2"
+const int ONE_WIRE = 14;     //1 WIRE Interface for AM2301 "HT21" Temp/Humidity. ESP-12E "D5"
 const int relayPin_K1 = 0;  //K1 relay control pin. MCP23017 Pin 21/GPA0
 const int relayPin_K2 = 1;  //K2 relay control pin. MCP23017 Pin 22/GPA1
 const int relayPin_K3 = 2;  //K3 relay control pin. MCP23017 Pin 23/GPA2

#include <ESP8266WiFi.h>        // ESP8266 (ESP-12E) wifi library
#include "SSD1306.h"            // SSD1306 OLED display 
#include "Adafruit_MCP23017.h"  // Adafruit-MCP23017-Arduino-Library, GPIO EXPANDER
#include "SparkFunTMP102.h"     // TMP102 I2C temperature sensor 
#include "fauxmoESP.h"          // Alexa suppport. (fake WeMo devices)
#include <NTPClient.h>          // Supports NTP server time queries. 
#include <WiFiUdp.h>            // Adds UDP protocol support, required by NTP service.

void loop() {
  display.clear();     // wipe display clean to refresh it
  updateIP();          // function call for display update
  //updateTemp();        // fuction call for TMP102 temp
  updateTime();
  fauxmo.handle();     // call fauxmo device function
  display.display();   // write display buffer
  Serial.println("LOOP");
  delay(100);           // loop governor, determine how fast this loop runs
}
//================================================================================================

