HC-SR04 distance sensor library.
A simple library for reading values from HC-SR04 ultrasonic distance sensor. You can get the distance to objects between 5cm and 400cm. This library also allows you to specify a room temperature to get more precise results.

Author: Segilmez06

Maintainer: Segilmez06

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.