Ultrasonic ranger on Raspberry pi 4 with direct gpio connection

I have purchased The ultrasonic ranger v 2.0 (with the single signal pin)
I am trying to make this work on a Raspberry Pi 4 by connecting the signal to gpio pin 6
Do you have any code examples or other resources for me to get this to work

thank you kindly for your help

This might help:

Or buy a Grove Base Hat…

You can use the sample code from the Seeed grove pi GitHub repo:


before using that, you should install the grove.py lib on raspberry pi, for that run the script below

curl -sL https://github.com/Seeed-Studio/grove.py/raw/master/install.sh | sudo bash -s -

More details: Grove Base Hat for Raspberry Pi