rotary encoder monitoring