Pwm from npn seen on anlog input

You can of course avoid analog by using a rotary encoder, not a pot. You can even get
hermetically sealed versions that use a magnetic sensing encoder chip.

I personally wouldn't give a standard pot more than a week in a salty marine environment before it
misbehaves... Its the harshest environment for electronics outside of the van-Allen belts!