IR object detector/phototransistor

I want to hook up this IR emitter/phototransistor to an arduino to measure dust on solar panels. I am new at electronics, but looking at the schematic, I would hook up pin 1 to gnd, pin 2 to +5V, pin 3 to arduino analog/+5V, pin 4 to gnd?

My confusion is on how to get analog readings from pin3 and pin 4.

Here is the datasheet: http://www.sparkfun.com/datasheets/Sensors/QRB1114.pdf

Thanks!

Generic circuit for a IR LED / Phototransistor device or seperates :

Switch turns the LED on and off and can be omitted, you hook an analog pin up to the test point.

The values of the resistors are deliberately vague, they depend on the optical interface of your particular application as much as anything…