First time posting.
Fairly new to Arduino and I am after some advice on the best way to time the duration of an event using Arduino.
My idea is to use a Davis anemometer to measure wind speed at a given time then to have a timer start when the wind speed increases above 20KM/h then stop when it falls below 20KM/H.
I am wanting for the timer to start and stop each time the conditions change to give me a total amount of time the condition was met over a 24hr period.
My intent is to gain data to estimate the effectiveness of a wind generator based on the time the wind speed is high enough for it to work
I have the anemometer part coded and working to give me a reliable wind speed output as well as the data logger but I am not sure how to code the timer part.
I have some basic understanding using an RTC and the Millis function however I cant figure out how to make do it what I want.
I figure it should be simple and I am missing something obvious.
Thanks in advance for any advice