In the FlowSensor.h file, line 35 appears this line:
digitalWrite(this->_pin, INPUT_PULLUP); // Optional Internal Pull-Up
INPUT_PULLUP is intended to be used with pinMode function. Instead, LOW or HIGH must be used.
Perhaps you want to use INPUT_PULLUP in line 34 as second argument for pinMode.
Maybe it doesn't cause any trouble, but the intention is not clear.
In the FlowSensor.h file, line 35 appears this line:
digitalWrite(this->_pin, INPUT_PULLUP); // Optional Internal Pull-UpINPUT_PULLUPis intended to be used withpinModefunction. Instead, LOW or HIGH must be used.Perhaps you want to use
INPUT_PULLUPin line 34 as second argument forpinMode.Maybe it doesn't cause any trouble, but the intention is not clear.