You may find this helpful (be sure to grab from my second posting):
http://www.chiefdelphi.com/forums/sh...d.php?t=103028
I posted this last year, it did work, however I wasn't very happy with the sensor itself since it's very easily confused.
Another good method for determining range is to roughly compute it from a known target (such as the 3pt goal).