From 902274312711cf60567f089b15187a93883f0daf Mon Sep 17 00:00:00 2001 From: Marcus Date: Wed, 22 May 2024 22:19:10 +0200 Subject: [PATCH] firmware wip - set dry value for analog soilmoisture to 300, measured with dry soil. --- Arduino/CanGrow/CanGrow_Sensors.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Arduino/CanGrow/CanGrow_Sensors.h b/Arduino/CanGrow/CanGrow_Sensors.h index d0c58aa..48be196 100644 --- a/Arduino/CanGrow/CanGrow_Sensors.h +++ b/Arduino/CanGrow/CanGrow_Sensors.h @@ -146,7 +146,11 @@ int getSoilmoisture(byte moistureSensor, bool returnRAW = false) { case 1: // read analog value from analog moisture sensor wet = 180; - dry= 590; + // this value was measured in air, without contact to anything + // dry= 590; + + // was measured in dry soil, not bone dry but really dry (6 days no watering) + dry = 300; //digitalWrite(PINsoilmoisture, HIGH); // wait a bit to let the circuit stabilize