ultrasonic = distance the sensor can only measure distance.
you must know the volume of the container to calculate quantity