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

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

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