How to read potentiometer input from dsPICDEM MCLV-2 Dev Board - dspic33
To read a potentiometer, you have to use the ADC peripheral in your micro-controller. Read the application notes available for using the ADC in the micro-controller.

You can only read a potentiometer. Writing to it is not possible, a potentiometer is variable resistor. You have to set/adjust the resistor provided by the potentiometer by varying the knob on the pot manually.