Can't see the program code you used.
Did you Serial.print() the values you are receiving from the sensor?
paul