Potentiometer does not read values

When I connect my potentiometer to any analog pin it does not reads the value of 15 all the time. I am 100% sure it is connected correctly and the code too. I have no idea what could be an issue. Interesting is that when I upload the code and unplug all the wires the readings do not change and the serial monitor still shows 15.
What could be an issue? I am a newbie and have no idea what is happening it always worked.

What code would that be?

wrong section to post this ➜ moved to the general section

please read How to get the best out of this forum and modify your post accordingly (including code tags and necessary documentation for your ask).

Post a photo of how the pot is connected, please.

And the code. Read the forum guidelines to see how to properly post code and some information on how to get the most from this forum.
Use the IDE autoformat tool (ctrl-t or Tools, Auto format) before posting code in code tags.

You deleted it, but we can still see…

Serial.println(potenciometer);

Try

Serial.println(potValue);

instead.

HTH

a7

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.