Garage door, getting the position

Did some testing with the 200 ohm I had, and it gave a pretty nice scale from 0 to 19 with a 10k pull up resistor (wont go higher than the 19 because of it only being 200 ohm at max).

A 10k ohm trimmer (wired to gnd), with a 10k ohm pull up resistor would give the 0-1023 scale?