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

         Serial.print(duration);
         Serial.println(" sec");                 
         delay(50);
         azureHttpPost("{deviceId:NeshMKR100Dev1, motion:1,elapsed:"+ duration + "}");
    }
    
    takeLowTime = true;

}

// 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
