 String writeString = "temperature=";
 String writeString2 = "&uptime=";
 String writeString3 = "&humidity=";
+String writeString4 = "state=";
 String returnString;
 
 /*==============================================================================
-* End of Configuration Variables
-*=============================================================================*/
+ * End of Configuration Variables
+ *=============================================================================*/
 
 char macString[18];  // Used to store a formatted version of the MAC Address
 byte macData[WL_MAC_ADDR_LENGTH];

}

/*==============================================================================
* connectWifi
*
* Use in setup to connect to local Wifi network
*=============================================================================*/
void connectWifi() {
  WiFi.mode(WIFI_STA); // Need for deepSleep
  // Connect to WiFi network

      //Serial.println("HANDLER: network or platform api request issue");
      exosite_comm_errors++;
      comm_errors++;
      for (int c = 0; c < 4; c++) {
        digitalWrite(LED_PIN, LOW);
        delay(200);
        digitalWrite(LED_PIN, HIGH);
        delay(200);
      }
    }
    digitalWrite(LED_PIN, HIGH);

    if (exosite_comm_errors == 5) {
      for (int c = 0; c < 3; c++) {
        digitalWrite(LED_PIN, LOW);
        delay(500);
        digitalWrite(LED_PIN, HIGH);
        delay(500);
      }
      Serial.print("exo: Check Provisioning - ");
      Serial.print("Murano Product ID: ");
