I'm trying to get my Waveshare Infrared Reflective Sensor to send distance information to an Arduino UNO via a digital input to judge distance.
What library should I use with the project? I have seen several suggestions for various IR sensors but they all were for specific sensors, none matching the Waveshare that I have.
You can use the analog output for rough distance/reflectivity sensing. The digital output is a HIGH/LOW signal with a threshold adjustable with the potentiometer.