I recently added an Arduino to my lister.
It monitors the engine coolant temperature and RPM using an infrared sensor to a white dot on the flywheel.
The Arduino sends the data to a cloud application so my cell phone can monitor it when I'm not in the garage.
(It will be running for up to 5 hours per cycle as a CHP system and I will not always be nearby).
My phone can communicate with the Arduino also, as part of my phone application I added a kill button.
If the engine senses overspeed, (or If I hit the kill button on my phone for any reason), the Arduino energizes a solenoid which closes the fuel rack until the flywheel rpm is zero..
It also allows me to have the engine run for a set time and then have the arduino turn off.
In the picture below you can see the Solid State relay attached to the right side of the Arduino enclosure.
That relay energizes the shutdown solenoid.
You could just as easily have the relay activate the water injection pump when the coolant temperature reaches some desired set point.
You could also use this same logic to active a fuel switch-over valve after 'x' minutes of running or after the engine shows some heat.
In reverse, the arduino could switch the fuel back to diesel 'x' minutes before auto shutdown.
Whatever you want. ... As long as you are having fun !
Also below is the 12vdc fuel switching valve that I will be using to switch from diesel to WVO (Currently my fuel switching is manual).
A second relay will be added to the Arduino to accomplish this.