diff --git a/src/main.c b/src/main.c index 60e079b..b15b133 100644 --- a/src/main.c +++ b/src/main.c @@ -30,10 +30,13 @@ void setup(void) { } void loop(void) { - triggerSensorRead(); - int16_t result = readMoisture(); - if (result != -1) { - + if (readSensors) { + int16_t result = readMoisture(); + if (result != -1) { + Serial.println(result); + readSensors = false; + } } + enterSleep(); }