Frequency/Pulse Measurement

robtillaart:
The pseudocode of dhenry works when there is wind and the anemometer generate pulses. If there is little or worse no wind his pseudocode will block.

Read - attachInterrupt() - Arduino Reference - and replace blink() with count()

Thanks for this, I was having trouble understanding dhenry.

I was also thinking of using "pulsein()" to measure the length of the pulses (as they also vary with wind speed), would this be a suitable method? would it cause any problems?