       Serial.println("Notification sent");
     }
     else{
-      Serial.println("Interrupted but not connected");
+      Serial.println("Value not sent. Not connected.");
     }
   }
 }

void onPinChanged(){
  Serial.println("On pin changed");
  if(debounce() == true){
    if(connected == true){
      // Read input and store
      uint8_t value =  0;


/** Debounce
 *  
 *  Returns true if this is the first reading after a switch.
 */
bool debounce(){
  unsigned long readTime = micros();
