add analog soil moisture

This commit is contained in:
Marcus 2024-04-07 01:20:30 +02:00
parent b80ae8c138
commit 0a34f9f3fe

View file

@ -173,7 +173,7 @@ int getSoilmoisture(bool moistureSensor) {
// read analog value from analog moisture sensor
digitalWrite(PINsoilmoisture, HIGH);
// wait a bit to let the circuit stabilize
delay(300);
delay(100);
soilmoisture = analogRead(PINanalog);
// disable Vcc for the sensor to release analog pin
digitalWrite(PINsoilmoisture, LOW);