Check values before publishing water stuff
This commit is contained in:
@@ -69,7 +69,6 @@ void Plant::clearMoisture(void){
|
||||
void Plant::addSenseValue(void)
|
||||
{
|
||||
int raw = analogRead(this->mPinSensor);
|
||||
Serial << "plant bla " << raw << endl;
|
||||
if(raw < MOIST_SENSOR_MAX_ADC && raw > MOIST_SENSOR_MIN_ADC){
|
||||
this->moistureRaw.add(raw);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user