Advanced arduino library for HC-SR04 ultrasonic sensors.
This library is very lightweight and fit for advanced use cases, such as requiring custom timeouts. Distance calculations implementation is left to the developer.

Author: Flávio Monteiro (

Maintainer: Flávio Monteiro (

Read the documentation


This library is compatible with all architectures so you should be able to use it on all the Arduino boards.


To use this library, open the Library Manager in the Arduino IDE and install it from there.