If you remove these lines exactly
if (ohTankFull)
okToPump = false;
if (ohTankLow)
okToPump = true;
and replace them with
if (ohTankLow)
okToPump = true;
if (ohTankFull)
okToPump = false;
that will make it respond differently to the impossible tank is full AND empty condition.
ohTankFull true means the OH tank is past the full level sensor.
ohTankLow true means the tank is below the low level sensor.
If ohTankLow is true and ohTankFull is false, the OH tank is very empty.
if ohTankLow is false and ohTankFull is false, the tank is between full and empty.
if ohTankLow is false and ohTankFull is true, the tank is very full.
if ohTankLow is true and ohTankFull is true, this is "impossible".
This is an opportunity to think about a sensor fault condition, one each for both tanks. Neither tank nor any real tank can be simultaneous full and empty; this should be reported as a malfunction. Naturally in this case there is a decision to be made about how the system responds.
a7