Help! I am creating Rotary Encoder Meter with Arduino

find the code that uses interrupts if you want it to respond to change of position immediately