shaft encoder

noun

1.
an electro-mechanical device that converts the angular position or motion of a shaft or axle to an analog or digital code.