Thursday, 18 March 2021

Task#6__Turn on the LED lights as the distance detected by Ultrasonic Sensor

This is a simple example of using the ultrasonic sensor (HC-SR04) in Arduino where we will turn on a led with the variation of distance and print the distance from an object to the serial monitor.