not sure about the post . . .
but look around for 'ADC', 'analog to digital converter', and here is an example:
rangefinder=a2dConvert8bit(5);//sensor is on ADC port 5
//output message to serial (use hyperterminal)
rprintf("Hello, World! Read My Analog: %d\r\n", rangefinder);