   display.init();   // SSD12306 - OLED screen start I2C comms
   mcp.begin();      // MCP23017 - I/O Expander start I2C comms
   sensor0.begin();  // TMP102 - Temp Sensor start I2C comms
-  
+
   //Flip Screen orientation in software, (pins on top)
   display.flipScreenVertically(); //SSD12306
 
   //CONFIGURE PIN USAGE
-  pinMode(alertPin,INPUT);  // Declare alertPin as an input TMP102
+  pinMode(alertPin, INPUT); // Declare alertPin as an input TMP102
   //set PORT A I/O expander pins to OUTPUTS for relay use
-  mcp.pinMode(relayPin_K1, OUTPUT); 
-  mcp.pinMode(relayPin_K2, OUTPUT); 
+  mcp.pinMode(relayPin_K1, OUTPUT);
+  mcp.pinMode(relayPin_K2, OUTPUT);
   mcp.pinMode(relayPin_K3, OUTPUT);
   mcp.pinMode(relayPin_K4, OUTPUT);
   mcp.pinMode(relayPin_K5, OUTPUT);

//UPDATE TIME FUNCTION
//------------------------------------------------------------------------------------------------

void updateTime(){
  timeClient.update(); // Requests time update from NTP server
  String timeString = timeClient.getFormattedTime(); // convert time to string
  display.setTextAlignment(TEXT_ALIGN_LEFT);


//UPDATE IP FUNCTION
//------------------------------------------------------------------------------------------------
void updateIP() {
  String ipaddress = WiFi.localIP().toString(); // convert IP address array to string
  display.setTextAlignment(TEXT_ALIGN_LEFT);
  display.setFont(ArialMT_Plain_16);
