   Serial.print("\tAlert Pin: ");
   Serial.print(alertPinState);
   
-  Serial.print("\tAlert Register: ");
+  Serial.print("\tAlert Register:  ");
   Serial.println(alertRegisterState);
   */
 }

#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)

//------------------------------------------------------------------------------------------------
//VARIABLES AND GLOBALS
//------------------------------------------------------------------------------------------------

// PIN DEFINITIONS
const int I2C_SDA = 0;      //I2C bus data pin (SCL).
const int I2C_SCL = 14;     //I2C bus clock pin (SCL).
const int alertPin = 5;     //TMP102 alert pin. ESP8266 Pin 
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

  WiFi.mode(WIFI_STA);

  // Connect
  Serial.printf("[WIFI] Connecting to %s ", ssid);
  WiFi.begin(ssid, password);

  // Wait
  while (WiFi.status() != WL_CONNECTED) {
