Check values before publishing water stuff

This commit is contained in:
Ollo
2021-07-14 21:14:03 +02:00
parent 2d91f91290
commit c448960415
2 changed files with 7 additions and 4 deletions

View File

@@ -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);
}