The lower left, I think. Emitter to ground, collector to an input with the internal pullup enabled (pinMode(inputPin, INPUT_PULLUP). No external resistor required. Input will be LOW when the LED in the opto-isolator is on (lit) and Vcc when LED is off (dark).