I am lost as to where to look and start trying to get a section of code for showing a max result in the past x-amount of time.
For example i am programming a Co2 monitor for my office space, and on the LCD / Serial monitor i want it to display the highest PPM recorded in the last hour or 24 hours, aswell as the average over 24 hours. I have all the display code sorted just stuck on this one part.
I am unsure as to how i will implement this with my RTC as i assume it will need to roll over the integer every hour/24 hours?
Any direction would be appreciated, i am aware this is rather vague but can't see any other examples as i don't know what i am looking for.
Cheers in advance.