Created readRotaryEncoder module