Sensor to measure engine RPM

Hi,
If you have access to a rotating part that you can paint black and white, you can use Infra red, its easier than trying to permanently attach magnets to rotating parts.

Something like this -

Duane B

rcarduino.blogspot.com