Getting Volume pot position

Linear pot is fitted to the shaft (mechanically) and wired with ends to Vcc and GND. The wiper would then give a voltage according to the rotation. Two small capacitors on the wiper (to GND and VCC) would do enough to clean out any brush / contact spikes.