This research investigates the precise regulation of liquid filling in tanks, specifically focusing on water storage systems. It employs the Proportional-Integral-Derivative (PID) control method in conjunction with an HC-SR04 ultrasonic sensor and an Arduino Uno microcontroller. Given the paramount importance of water as a resource, accurate management of its storage is of utmost significance. The PID control method, known for its rapid responsiveness, minimal overshoot, and robust stability, effectively facilitates this task. Integrating the ultrasonic sensor and microcontroller further augments the precision of water level regulation. The article expounds upon the foundational principles of the PID control method and elucidates its application in the context of liquid tank filling. It offers a comprehensive insight into the hardware configuration, encompassing pivotal components such as the Arduino Uno microcontroller, HC-SR04 ultrasonic sensor, and the L298 driver responsible for water pump control. The experimental approach is meticulous, presenting results from tests involving the Proportional Controller, Proportional Integral (PI) Controller, and Proportional Integral Derivative (PID) Controller. These tests rigorously analyze the impact of varying Proportional Gain (Kp), Integral Gain (Ki), and Derivative Gain (Kd) parameters on crucial performance metrics such as response time, overshoot, and steady-state error. The findings underscore the critical importance of an optimal parameter configuration, emphasizing the delicate equilibrium between response speed, precision, and error minimization. This research significantly advances PID control implementation in liquid tank filling, offering insights that pave the way for developing more efficient liquid management systems across various sectors. The identified optimal parameter configuration is Kp = 5.0, Ki = 0.3, and Kd = 0.2.