Mapping(Not Resolved)

Your calling analogRead but not storing the result anywhere, you need to add -

potValue =

before analogRead

Duane B