fl0 wrote:Is there a reason to use GPIO 22 rather than 17?
No reason. It's just the way the code was written
fl0 wrote:The pictures in the article imply the sensor is wired directly, however when I do this, it doesn't detect a state change either. My python code only detects a 1 when wired like this and I believe it's not good for the RPi?
So, you're running the flow meter off 5V, right? Yes, that does seem odd. I guess I'd set up a voltage divider on it.
Even so, it should detect the state change, if you're running it on 5V.