An encoder is a device that converts data from one format to another. It can detect and convert the mechanical motion to an analog or digitally coded output signal.

Available online by Omron.