I am interfacing a Wind sensor to an UNO board. The wind sensor generates 5 Volt pulses. The pulses frequency depends on the speed of the wind. If speed of the wind is 5 mph then it will produce two pulses per second.
I want to detect these pulses using an interrupt that will increment a counter. Please tell if this is the right way to go. How can I implement this in software? Any examples source code etc.