missing sensor error
This commit is contained in:
parent
d043d873cc
commit
2e052710e2
@ -82,6 +82,9 @@ public:
|
||||
|
||||
float getCurrentMoisture()
|
||||
{
|
||||
if(mMoisture_freq < MOIST_SENSOR_MIN_FRQ){
|
||||
return MISSING_SENSOR;
|
||||
}
|
||||
return mMoisture_freq;
|
||||
}
|
||||
|
||||
|
@ -273,6 +273,11 @@ void readPowerSwitchedSensors()
|
||||
mPlants[i].stopMoistureMeasurement();
|
||||
}
|
||||
|
||||
for (int i = 0; i < MAX_PLANTS; i++)
|
||||
{
|
||||
Serial << "Plant " << i << " measurement: " << mPlants[i].getCurrentMoisture() << " hz" << endl;
|
||||
}
|
||||
|
||||
waterRawSensor.clear();
|
||||
Wire.setPins(SENSOR_TANK_TRG, SENSOR_TANK_ECHO);
|
||||
Wire.begin();
|
||||
|
Loading…
Reference in New Issue
Block a user