Grove - 80cm Infrared Proximity Sensor

Hi there, for a project i would like to meaure the distance in cm with the Grove - 80cm Infrared Proximity Sensor which thought should be straight forward since it is a sensor for distance measunring. But i din`t find a code that works for Python / Raspberry Pi with the GrovePi.

Can someone help out :slight_smile: ?

Hi there,
You can easily adapt this simple code to python,
Check out this Video

and thereโ€™ alink to working code.
GL :slight_smile: PJ

If you need smaller byte size :grin: Chunks this code example would be a good one to emulate.
Ready to REALLY get going then This one is What I used to test one. :face_with_hand_over_mouth:

Thank you so much for this, looks exactly like i was looking for.
Only thing is: The library is not a python lib, i might be able to convert with chat gpt the skretch code to python. But what to do with the library?

I am a bloody beginner as you see :slight_smile: a reply would be much appreciated.