Hi so I am making a self watering flower pot with a moisture sensor and a peristaltic pump, the code is attached.
I want to add an indicator LED which turns on if the sensor value has been equal to or greater than MaxDryness for longer than twenty minutes.
How would I alter the code to do that?