Since the height of the liquid level is inversely proportional to the water pressure at the bottom of the tank, the height of the liquid level can be determined by measuring the pressure at the bottom of the tank with a pressure sensor. The pid algorithm automatically adjusts the water level to keep it constant,