I can't get the a 10K potentiometer to work

If that's a servo connected to the Arduino 5 volt line use and external supply instead.

Cannot see how the potentiometer is wired.

.