I want to make a sensor that senses a person between 1.5 m and 0.2 m, connected to an LED that is on 100% at 0.2 m and 1% at 1.5 m and gradually scales.
Is an ultrasonic sensor the best sensor to use here?
Arduino Stack Exchange is a question and answer site for developers of open-source hardware and software that is compatible with Arduino. It only takes a minute to sign up.Sign up to join this community
Most arduino compatible ultrasonic sensors should work perfectly for your use case. You would just have to program the arduino then but I am going to assume that you know how to do that.
Here is a link to the one that I personally use: https://www.amazon.com/HC-SR04-Ultrasonic-Distance-MEGA2560-ElecRight/dp/B01MA4O5G5/ref=sr_1_3?ie=UTF8&qid=1524520770&sr=8-3&keywords=ultrasonic+sensor