OK so I uploaded the sketch to my arduino nano and it didnt work.
I got out my multimeter and measured the VSS going into PIN D5 at 40mph and its actually 60hz. So my information about 8000 pulses per mile must be incorrect.
Any way I carried on driving but didnt get any output from Pin A0 at any speed.
![]()