code to record wind speed

Please read the forum guidelines in the sticky post. They will tell you how to post code correctly, and links and pictures. Then please edit your post above and fix it.

To answer your question, no, this code is not suitable because it is designed for a very different design of anemometer. The AdaFruit sensor generates a voltage that changes with windspeed.. Your anemometer, like the one I use, generates pulses at a frequency that changes with the windspeed.