Just so you might learn something from this, here's how a voltage divider works:
View attachment 146745
It's a basic electronic concept used in a lot of places, so worth knowing about. Like the name implies, it divides a voltage (on the input side) into two voltages. The output side is at the voltage at the lower end (V2). The voltages are proportional to the ratio of the resistances. If R1 is a large value and R2 small, then V2 is a small voltage (and vice versa). Imagine turning your pot from one side to the other and think about what those 2 resistances are doing as you do that.