Arduino UNO R3 using two outputs dependent to different inputs

And get rid of the non-sensical lines near the top of your loop - pointed out earlier, commented out here:

//  int tankempty = digitalRead(tankempty);
//  int ohtanklow = digitalRead(ohtanklow);
//  int ohtankfull = digitalRead(ohtankfull);

a7