
Set up a transimpedance amplifier circuit with an OP905 photodiode as the current source and an appropriate resistor value (try 1 megohm or higher).

import processing.serial.*;
import cc.arduino.*;
import org.firmata.*;
line() function).Download Symbol and Footprint from this MCP6041-E/P external library. For download format, select Eagle (duh)
MCP6041-E_P to In Use