m3pi with ultrasonic sensor

Greetings!
First, sorry for my english, im writin’ from dark Russia.
Now - problem
I have m3pi robot and maxsonar-ez1 sensor.
After long searching i cant find any suggestion for code.
Task - allow robot to print range which this sensor mesuring.
Please help, i dont get it! Give me any suggestion!

Hello.

Are you using the 3pi’s built in AVR microcontroller or an mbed microcontroller? Do you understand the sensor interface? Also, do you have any code you have tried so far that you could share with us?

-Brandon