Paint a white line on the flywheele and use one of those reflective opto switches then count pulses it also has the advantage of being a non contact / no mechanics interface Cheers Steve.....