How to calculate maximum wind or gust

I guess this isn't quite so. You need to consider the time between "clicks" to actually calculate the speed, right?

If you search the forum for "anemometer" or "weather shield" you might find some discussions about using interrupts for that.

But one thing to note for sure is that analogRead() isn't the right tool for that. If you want to do it that way, you'd rather want digitalRead() (or as I said interrupts).


Update:
I just realised that you and me (amongst others) have already discussed very similar things in (at least two) other threads
Davis anemometer and Electron
Nightmare with photon weather shield - #5 by ScruffR

1 Like