IR sensors

I was wondering if anyone knew (or knows somewhere to look) to find out how to use the SHARP IR sensors. I know how to hook them up to the arduino, but i'm not sure what code to write to get them to work. All I want is to have them give a voltage output value.

Thanks!

Have you seen this:-
http://letsmakerobots.com/node/1002

Here's the code I use to get the voltage output value:

int DistanceToObstruction( int sensor )
{
  int result;
  result = analogRead( sensor );
  return result;

}

The sensor parameter on that procedure is the analog pin number the sensor is hooked up to.

I use Sharp IR Distance Sensor GP2Y0D810Z0F.

Duncan.