Reliable and repeatable tank level measurement