Firstly, thanks for writing this library!
One thing I noticed, due to what may be a flaw in my circuit, is that the library resets the microcontroller unit when the sensor reading fails:
https://github.com/TronixLab/SFM3300/blob/main/SFM3300.cpp#L90-L96
Maybe consider removing this? It threw me for a loop (figuratively and literally!) until I read through the code. I'm not sure if it's a typical use case, but I think the reset makes it impossible to hot-swap flow sensors without resetting runtime state.
Firstly, thanks for writing this library!
One thing I noticed, due to what may be a flaw in my circuit, is that the library resets the microcontroller unit when the sensor reading fails:
https://github.com/TronixLab/SFM3300/blob/main/SFM3300.cpp#L90-L96
Maybe consider removing this? It threw me for a loop (figuratively and literally!) until I read through the code. I'm not sure if it's a typical use case, but I think the reset makes it impossible to hot-swap flow sensors without resetting runtime state.