I think some of it has to do with it crystalizing on the inside of the tank, when the tank is low or near empty it gives the DEF a chance to crystallize.... on the non wetted surfaces, When you fill it up and wet the crystals... They dissolve, Which in turn sensors start working normally.
My 2...