digital pin errors

Sorry, found the solution.

Three observations:
In loop():

  • you are getting wind speed by directly reading a digital pin state. How can that work?
  • you are continually resetting your counter, every time through loop(), so thousands of times a second. How can that work?

Outside loop():

  • you are not following all the rules about implementing interrupts. You need to study up on that.

Sorry, problem solved.

Sorry, problem solved.

Well, are you going to share it so that others may learn?