im by no means good at this, but,
the opto contains a LED right? I would imagine it can light at 5v with a 330k resistor to protect it,
so i would put the pin of the arduino into the Positive side of the opto led and run the other side to ground, then when the pin is HIGH you have a lit opto LED, and when its LOW you dont,