allow analog sensor some time to settle
This commit is contained in:
parent
2c5d61a124
commit
200ff30f62
@ -261,6 +261,7 @@ void readOneWireSensors(bool withMQTT)
|
|||||||
void readPowerSwitchedSensors()
|
void readPowerSwitchedSensors()
|
||||||
{
|
{
|
||||||
digitalWrite(OUTPUT_ENABLE_SENSOR, HIGH);
|
digitalWrite(OUTPUT_ENABLE_SENSOR, HIGH);
|
||||||
|
delay(10);
|
||||||
for (int readCnt = 0; readCnt < AMOUNT_SENOR_QUERYS; readCnt++)
|
for (int readCnt = 0; readCnt < AMOUNT_SENOR_QUERYS; readCnt++)
|
||||||
{
|
{
|
||||||
for (int i = 0; i < MAX_PLANTS; i++)
|
for (int i = 0; i < MAX_PLANTS; i++)
|
||||||
|
Loading…
Reference in New Issue
Block a user