I am going to install a distance sensor with arduino for detecting at least 6ft, for dimming led strips.
Could you recommend me fairly good distance sensor?
I was considering ultrasound sensor which seems not so accurate on calculating distance from the sensor?
Is there another sensor such as camera(optical detection) which can be used with arduino programming, not with using a computer?
also. is there a sample code for dimming light strip with using pw?