Help with a OPB704W object sensor

RIDDICK, Thanks again for your response! I was able to find an example and the cathode and emitter do go to ground. My only other question is I think this sensor is analog therefore I will be using one of the analog in pins. Is this correct? Again sorry for the newbie questions and Thank You for your time!!