Waterproof_Ultrasonic library for AJ-SR-04M or JSN-SR04.
A simple library for reading values from AJ-SR-04M or JSN-SR04 ultrasonic distance sensor. You can get the distance to objects between 25cm and 400cm. Suport both Uart and PulseIn.

Author: Makerlab.vn

Maintainer: Makerlab.vn

Read the documentation

Go to repository


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.