I know this is a old thread but how would I go about building a loop which measures 50 values of the soil sensor and create the average out of it?torwag wrote: ↑Mon Nov 11, 2019 7:32 amBuilding a loop which measures e.g. 20 values of the soil sensor and create the average out of it (to make sure that it is not triggered by a wrong measurement), then decide to turn or not turn on the pump for a fixed amount of time, finally wait for 1 hour before cycle again (the process itself is slow, no need to measure every second).
Thanks!