G.H+Po, inside the method P could be the force about the liquid floor on the sensor, ρ would be the density of the liquid to be calculated, g would be the area acceleration of gravity, Po is the atmospheric pressure over the liquid floor, and H will be the depth https://controltechme.com/ultrasonic-level-sensor/