Input side. The PC817's LED needs a few milliamps. With 12 V in and about 1.2 V across the LED:
I_LED = (12 V − 1.2 V) ÷ 2.2 kΩ ≈ 4.9 mA
Output side. The phototransistor pulls the output to GND when the LED is lit. A 10 kΩ pull-up to +3V3 holds it high otherwise and needs only 0.33 mA, well within what the PC817 can sink at this LED current (its current-transfer ratio is at least 50%).
So the logic is inverted: 12 V present → output LOW. Read it with an ordinary digital input (no internal pull-up needed, the 10 kΩ is on the board).
Keep the sides apart. The input side's IN− is not connected to the board's GND; that separation is the whole point. On the board, leave a clear gap between the two halves.