Here’s something you might consider.
Say you’ve tank A and tank B with respective levels and valves.
Make a split-range PID with output as follows:
0% (A 100% open, B 0% Open), 25% (A 100% open, B 50% Open), 50% (A 100% open, B 100% Open),
75% (A 50% open, B 100% Open), 100% (A 0% open, B 100% Open)
The input to the PID is (level B – level A) with a range of -100 to 100, action is direct acting. Tune this with mostly proportional action and a very small reset value.
Nominally, you’ll want a setpoint of 0.
Let us know what happens