This project uses an ultrasonic sensor and an Arduino to measure distance and dynamically control the brightness of an LED. As an object moves closer to the sensor, the LED becomes brighter. As the ...
This program is useful for creating an energy-efficient lighting system that responds to motion, such as a hallway or security light, with adjustable brightness and automatic turn-off features after a ...