Rotary encoder together with arduino for measuring angle

thanks for the answers. :slight_smile:
The precision should be approximately +/-5 degrees. And yes, the the rotation will only be in one axis.
How good precision can I get from a relativly cheap rotary encoder? or is it better to use an accelerometer as suggested?