Most things are working properly:

The battery switching looks good. However, the pump hung at time==14617. At that point, for its own reasons and without input, the flow sensor decided that the flow rate is infinite. There’s a bug in it’s calculations, but whatever, at this point I have to ignore the flowrate calculation in the code from Adafruit, and monitor the flow sensor’s pulse count directly.