I'm sorry I misinterpreted this because I did not look carefully enough at the changes you made in the loop.
Good afternoon, thank you very much for your responsiveness, after compiling the relay was triggered to turn on and did not turn off. Turned off after pushing the button. Also after pushing the button again nothing worked. Tried substituting this formula for my sensor in different places. Also nothing worked.
Formula water flow-= 1.0 / 3510.0 according to the hall sensor and datasheet
You are supposed to read in the code and learn
change the baudrate in the serial monitor to 115200
same thing here. The name of the function CalculatePrintVolume()
says what this function will do if you have done
Serial.println("replace with calculation pulses to Liter");
best regards Stefan