 
 
 void loop() {
-  while(pendingValue == true){
-    // Wait for pin to stabilize
-    delay(100);
-    if(notify()){
-      pendingValue = false;
-    }
-  }
-  if(connected == true){
-    if(millis() - lastEvent > SLEEP_TIME_MILLIS){
-      go_to_sleep();
-    }
-  }
+//  while(pendingValue == true){
+//    if(notify()){
+//      pendingValue = false;
+//    }
+//  }
+//  if(connected == true){
+//    if(millis() - lastEvent > SLEEP_TIME_MILLIS){
+//      go_to_sleep();
+//    }
+//  }
+//  delay(100);
+  return;
 }

  pService->start();

  // Start advertising
  BLEAdvertising *pAdvertising = BLEDevice::getAdvertising();
  pAdvertising->addServiceUUID(SERVICE_UUID);
  pAdvertising->setScanResponse(false);
  pAdvertising->setMinPreferred(0x0);  // set value to 0x00 to not advertise this parameter


  // Attach interrupt to input pin
  attachInterrupt(INPUT_PIN, onPinChanged, CHANGE);
  
}


