Another option is to use a string potentiometer e.g.
AndyMark sells a kit
They have the advantage that the pot can be mounted at some distance from your axle, simplifying mounting and field maintenance. It won't measure angle directly but you can calculate angle by simple trig or just use a predetermined value for specific setpoints.