The reading from the POT should be put in a variable.

The CON is the address of the Data Table that gets stored in program memory.

Then the A/D reading would be used as an offset into the data table in order to find the correct value.
<br>