This worked well for me with pin 21 (trigger) and pin 22 (echo)

https://github.com/rsc1975/micropython-hcsr04