Extremely resilient range sensor

Maybe weight works for your container as measure for how full it is.