Quadrature encoders count relative motion indefinitely, absolute encoders retain position through a power cycle, and potentiometers give an analog voltage with hard end stops. The rotation model matters before you look at the pinout.
Bare EC11 quadrature encoders, I2C navigation encoders, absolute AS5600 and 8421 encoders, slide and ribbon potentiometers, and digital I2C pots — covering most ways to read angular or linear position.