 long unsigned int prevSensorTime = 0;
 int exosite_comm_errors = 0;
 int comm_errors = 0;
+int s = 0;
+bool initial = true;
 
 WiFiClient client;
 Exosite exosite(&client);
 DHT dht(DHTPIN, DHTTYPE);
 
 /*==============================================================================
-* setup
-*
-* Arduino setup function.
-*=============================================================================*/
+ * setup
+ *
+ * Arduino setup function.
+ *=============================================================================*/
 void setup() {
   Serial.begin(112500);
   EEPROM.begin(40);
   exosite.begin();
-  exosite.setDomain(productId".m2.exosite.com");
+  exosite.setDomain(productId".devmode-m2.exosite.io");
 
   //SET UP IO PINS
   pinMode(LED_PIN, OUTPUT);

  // Print Some Useful Info
  Serial.print(F("wifi: MAC Address: "));
  Serial.println(macString);
}

String writeString = "temperature=";
String writeString2 = "&uptime=";
String writeString3 = "&humidity=";
String writeString4 = "state=";
String returnString;

/*==============================================================================
 * End of Configuration Variables
 *=============================================================================*/

char macString[18];  // Used to store a formatted version of the MAC Address
byte macData[WL_MAC_ADDR_LENGTH];
