   volume.value      = EEPROM.read(volume.address);
   sensitivity.value = EEPROM.read(sensitivity.address);
   
-  attachInterrupt(digitalPinToInterrupt(increasePin), increase, FALLING);  //when an interruption occurs on falling edge (it's pulled up) system calls increase
-  attachInterrupt(digitalPinToInterrupt(increasePin), decrease, FALLING);  //when an interruption occurs on falling edge (it's pulled up) system calls decrease
-  attachInterrupt(digitalPinToInterrupt(increasePin), toggleMenu, FALLING);  //when an interruption occurs on falling edge (it's pulled up) system calls toggleMenu
+  
+  attachInterrupt(digitalPinToInterrupt(menu_int), toggleMenu, FALLING);  //when an interruption occurs on falling edge (it's pulled up) system calls toggleMenu
+  attachInterrupt(digitalPinToInterrupt(bite_int), alarmMode, RISING); // when an interruption occurs on RISING edge system calls alarmMode function.
   
 }
 

//
#define increasePin  0 // pin in which + button will be connected
#define decreasePin  0 // pin in which - button will be connected
#define menuPin      0 // pin in which menu button will be connected

bool menuStatus; // this bool stores the menu toggle status 1 stands for Volume and 0 for Sensitivity


void setup() {
  pinMode(increasePin, INPUT_PULLUP);
  pinMode(decreasePin, INPUT_PULLUP);
  pinMode(menu_int, INPUT_PULLUP);
  pinMode(bite_int, INPUT_PULLUP);
  pinMode(volLedP,OUTPUT);
  pinMode(sensLedP,OUTPUT);
  pinMode(eventLedP,OUTPUT);
