   //Local intialization. Once its business is done, there is no need to keep it around
   WiFiManager wifiManager;
 
-  drd = new DoubleResetDetector(DRD_TIMEOUT, DRD_ADDRESS);
-  if (drd->detectDoubleReset()) 
-  {
-    Serial.println("Double Reset Detected");
-    wifiManager.resetSettings();
-    ESP.reset();
-    delay(1000);
-  } 
-  else 
-  {
-    Serial.println("No Double Reset Detected");
-  }
+//  drd = new DoubleResetDetector(DRD_TIMEOUT, DRD_ADDRESS);
+//  if (drd->detectDoubleReset()) 
+//  {
+//    Serial.println("Double Reset Detected");
+//    wifiManager.resetSettings();
+//    ESP.reset();
+//    delay(1000);
+//  } 
+//  else 
+//  {
+//    Serial.println("No Double Reset Detected");
+//  }
 
   //set config save notify callback
   wifiManager.setSaveConfigCallback(saveConfigCallback);

8. v2.3 Add Double Reset Detector - to detect double press on reset button and wipe the wifi settings
9. v2.4 Define wake up interval - to save battery, default 10 mins, during wifi setup
10. v2.5 replace DoubleResetDetector with ESP_DoubleResetDetector (bug randomly caused wifi settings disappeared)

Todo
* Option to specify option to enable (Y/N) DHT22, UV sensor during wifi setup

  //  saveCounter(eventCounter);         // this also puts bme0 to sleep
  bme0.updateF4Control16xSleep(); // use instead of saveCounter if counter is not required

  // Call the double reset detector loop method every so often,
  // so that it can recognise when the timeout expires.
  // You can also call drd.stop() when you wish to no longer
  // consider the next reset as a double reset.
//  drd->loop();
  
  goToSleep();
} // end of void setup()
