Rotation Sensor Request

Hi, I am trying to develop a system that has a rotational sensor which is connected to a handle which a user is able to rotate 180 degrees. I am not sure what is the best solution to this which will output a value between 0 to 180 degrees depending on the calibration settings. Please let me know if there are any good ideas.

Shaft encoder. There are lots of options: mountings, angular resolution, absolute or relative encoders.

A heavy duty wirewound potentiometer, like those used on control desks and panels back in the analog days.