Arduino and the Potentiometer

A potentiometer is a knob that provides a variable resistance.
We can read in this resistance through the analog pins of the Arduino.

This is a potentiometer..

And this is a detailed diagram of it's components:

This step-by-step guide will help you use a potentiometer with your Arduino.