I need to measure the speed of a motor. The output of the instrument that measure speed must be voltage.It must be given as an input for a voltage comparator. Kindly guide me how to do it and which instrument should I use?