rewrote level control logic & level sensing function to run on float switches, set of 3 floats, see comments for details; various formatting & variable nomenclature updates for readability & logical semantics; code compiles & runs, but SD code commented out, therefore usable if SD code is commented back in