Further to my comment from 2nd May in category sensors, (as I can’t reopen the ‘answered’ question) I would like to discuss:
Would it make sense to aggregate the data ? Further, will we have good ‘no’ and ‘co2’ values when we measure every 2 seconds and build aggregates ?
If we agree on this, we should have a general agreement from the system architects if this makes sense. If yes, we need an agreement/direction how to change the code. I can make some changes but general rules on calling subroutines, how to aggregate and on the data model should be done before.
We could measure every 1-2 seconds (if the kit is able) and upload the aggregated data every 1-3 minutes. Three records, a min, a max and an avg record adding a field with the amount of raw values into the records.