Hi,
Sorry we need all the code.
Forget abut the servo and write code that just gets the signal from the sensor and puts the results on the IDE monitor?
Can we please have a circuit diagram?
We need to see how you connected the sensor?
What model Arduino are you using?