 boolean lockLow = true;
 boolean takeLowTime;  
 String duration ="0";
+boolean webServiceSucceeded;
 
 ///*** WiFi Network Config ***///
 char ssid[] = "YourWifiSSID"; //  your network SSID (name)

    Serial.println("SENSOR ACTIVE");
    delay(50);

    Serial.print("check for the presence of the shield");
  //check for the presence of the shield:
  if (WiFi.status() == WL_NO_SHIELD) {
    // don't continue:
    while (true);
  }
   Serial.print("Good. this board supports Wifi!");

  // attempt to connect to Wifi network:
  while (status != WL_CONNECTED) {

}

// this method makes an HTTPS connection to the Azure IOT Hub Server:
boolean azureHttpPost(String content) {

  // close any connection before send a new request.
  // This will free the socket on the WiFi shield
