Design and Implementation of Rain Gauge Measurement using Ultrasonic Sensor HC-SR04 (Case Study using Ombrometer Method)


  • Frengki Simatupang Institut Tekologi Del
  • Waldo Owen Nainggolan School of Electrical Engineering and Informatics, Institut Teknologi Bandung



Ombrometer, Ultrasonic Sensor, Microcontroller, Rain Gauge Measurement, Wi-Fi


There are several types of rainfall measurement method, such as tipping bucket, siphon, rain water weight and other various methods. This research developed the alternative and affordable method to measure the rain gauge using ultrasonic sensor. The method used to convert the volume of collected rain water to the level of a rain gauge is Ombrometer method. Ultrasonic Sensor HC-SR04 is chosen as a sensor to measure the water level in the collected rain water tank because it categorized as a low-cost sensor. Measuring the level of rainfall using an ultrasonic sensor is influenced by the design of the reservoir tank and also the resolution of the ultrasonic sensor. This research found that the difference the measurement using ultrasonic sensor between ombrometer formula is sufficiently linear with the difference average at 32.63%. The lookup table method is implemented to linearize the measurement based on the ombrometer value method. By using the linearized value, the design is capable to measure light rain category because the design has the sensitivity/resolution measurement of rain gauge on 0.48 mm. This research also found that the average value of the measurement using the ultrasonic sensor for each measured volume water injected to the tank using this design and use this value as a trigger to send the actual measurement result to the users. All parameters from this system are sent using Wi-Fi connectivity to the server and can be monitored using Online Web Dashboard.


Z. W. Xu and G. L. Zheng, “Implementation of a High-Precision Ultrasonic Rain Gauge,” Appl. Mech. Mater., vol. 300, pp. 382–388, 2013.

A. Yudhana, J. Rahmayanti, S. A. Akbar, S. Mukhopadhyay, and I. R. Karas, “Modification of manual raindrops type observatory ombrometer with ultrasonic sensor HC-SR04,” Int. J. Adv. Comput. Sci. Appl., vol. 10, no. 12, pp. 277–281, 2019.

Y. B. Pavlyukov, “Precipitation measurement with automated tipping-bucket rain gauges,” Russ. Meteorol. Hydrol., vol. 32, no. 11, pp. 711–718, 2007.

H.-Y. Li, Q. Li, X. Li, and J.-L. Song, “Discussion on the algorithms of a new siphon rain gauge,” WSEAS Trans. Circuits Syst., vol. 9, no. 6, pp. 389–398, 2010.

L. Li, Y. Zhu, and B. Zhao, “Rain rate distributions for China from hourly rain gauge data,” Radio Sci., vol. 33, no. 3, pp. 553–564, 1998.

O. Fiser and O. Wilfert, “Novel processing of Tipping-bucket rain gauge records,” Atmos. Res., vol. 92, no. 3, pp. 283–288, 2009.

W. Huang, L. Chen, J. Ge, and C. Zhang, “A Low-Cost Harvest Area Measurement System Based on Ultrasonic and Hall-Effect Sensors,” Sens. Lett., vol. 10, no. 1–2, pp. 317–323, 2012.

H. Zhao and Z. Wang, “Motion measurement using inertial sensors, ultrasonic sensors, and magnetometers with extended kalman filter for data fusion,” IEEE Sens. J., vol. 12, no. 5, pp. 943–953, 2011.

F.-C. Li, W.-L. Chen, H. Li, and R. Zhang, “An ultrasonic transmission thickness measurement system for study of water rivulets characteristics of stay cables suffering from wind–rain-induced vibration,” Sensors Actuators A Phys., vol. 159, no. 1, pp. 12–23, 2010.

V. A. Zhmud, N. O. Kondratiev, K. A. Kuznetsov, V. G. Trubin, and L. V Dimitrov, “Application of ultrasonic sensor for measuring distances in robotics,” in Journal of Physics: Conference Series, IOP Publishing, 2018, p. 32189.

BMKG, “Probalistik Curah Hujan 20mm (tiap 24 jam),” (accessed on 04 May 2023).

N. I. Abdulkhaleq, I. J. Hasan, and N. A. J. Salih, “Investigating the resolution ability of the HC-SRO4 ultrasonic sensor,” in IOP Conference Series: Materials Science and Engineering, IOP Publishing, 2020, p. 12043.

“HC-SR04 Datasheet.”




How to Cite

Simatupang, F., & Nainggolan, W. O. (2024). Design and Implementation of Rain Gauge Measurement using Ultrasonic Sensor HC-SR04 (Case Study using Ombrometer Method). Piston: Journal of Technical Engineering, 7(2), 80–90.