This remind me of something.
Step 1. Collect underpants.
Step 2. ?
Step 3. PROFIT
Have you seen this product:https://www.naked-portafilter.com/smart ... -profiler/
Maybe that goes in the right direction. But that's only monitoring. Controlling is a whole different problem.
That said, the DE machines, from the ground up, have been designed with the need for sensors and control in mind. There are 9 temperature sensors (6 water, 3 metal) & 1 pressure sensor. Oh and temp sensor on the board and one for ambient temp.
So, maybe there's a way, but "good price" it won't be.
Edit: added correct number of temp sensors and flow diagram