how to use interrupts in arduino code example Example: interrupt arduino attachInterrupt(digitalPinToInterrupt(interruptPin), someFuntion, CHANGE);