problem with urm37 v3.2 library

Hi,
I am a beginner in Arduino and I am trying to interface a urm37 v3.2 sensor with my roboduino romeo micrcontroller.Its the same as Arduino as I am told.I downloaded the library from Miles Burton webpage.I used the TTL connection by jumper setting and connected the sensor with arduino like this.
Arduino URM37
pin 13 pin1
pin 12 pin7
pin gnd pin2
pin 3 pin8
pin2 pin9

I want to build a robot with URM37 as its eyes to detect the exact location(or distance) of surrounding objects. Can any one give me a sample code for that?I have tried the library examples(distance by hardware,measurement by software serial,servo scan) but they dont work for me.only -1 value is given by the sensor.
i have managed to get successful readings by using the code from the website of yerobot.
but the problem is I cannot make it loop in my program.The purpose of this in a robot is to look at different angles.but this code cannot loop.I tried to create a seperate function.But still when I try to use the function in the program, it does not give a value more than one time.I really need this help.If anyone can help me I will be grateful.Thanks.

I was having the same problem and the solution is that the example sketches were addressing pin 6 and 7 as the Rx and Tx. I think this was done to remove interference when uploading (pin 2 and 3 were used before and the website did not update it). Hopefully that does the trick. Let me know how your servo works, I have a feeling that servoscan was written for a futaba servo and may have to be adjusted for hitec (what I'm using).

Cheers