These two sensors detect whether and object is within 10 and 5 centimeters respectively. Their output is digital (oposed to the analog one in the previous IR sensor): 1 in case the object is not detected and 0 in case the object is within the range. The output is read using the previously mentioned Adafruit’s BeagleBone IO Python Library.
I’m afraid my soldering abilities are not as my coding ones so unfortunately, I have not been able to test these sensors because (i guess) a sensor bad soldered (it’s really tiny!).
Nevertheless, i’ll order a soldered one and give it a try.