I've done a lot of motor and fan sensing. There are about 19 ways to do this, so more data is required to get to a good solution for your application.
Shaft speed in rpm or rps
Shaft diameter
Environment (wet, humid, dry, dusty, medical, food processing, etc.)
Output signal (transistor switch...