add analog soil moisture
This commit is contained in:
parent
b80ae8c138
commit
0a34f9f3fe
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue