Potentiometer

Pot, variable resistor, knob

A potentiometer is a resistor with a knob, used to give a variable voltage or resistance.

Outer legs to + and GND, middle leg (wiper) to an analog input: turning the knob gives 0 V to 5 V. That's a voltage divider.