how to use rpm sensor where frequency and amplitude of output varies [SOLVED]

Hi guys, thanks a lot for your help. It worked great!
The capacitor really did the trick.