Range sensor