// Install the interrupt routine.
ISR(INT0_vect) {
//check the value again - since it takes some time to
//activate the interrupt routine, we get a clear signal.
value = digitalRead(sensePin);
}
ISR(PCINT0_vect) {
//check the value again - since it takes some time to
//activate the interrupt routine, we get a clear signal.
value = digitalRead(8);
delayMicroseconds(500);
}