Antorbd,

to add a variable to your code you simply declair it at the beginning like this...

AdjustPWM VAR BYTE


Then you can read the AD converter connected to your variable resistor like...