Here is a simple example of interfacing a potentiometer. In the case of potentiometer, you will have three pins. You can connect one pin to the ground and the other to the
Arduino - Potentiometer | Arduino Tutorial
Arduino SoftPot LED Meter (Membrane Potentiometer) — Maker Portal
How to use a Potentiometer - Arduino Tutorial
How to Use a Potentiometer With an Arduino — Cool Components
Arduino Potentiometer Tutorial - Circuit Geeks
L4: Potentiometers - Physical Computing
How to Use Potentiometers on the Arduino - Circuit Basics