So, maybe it's my understanding that is at fault or maybe it's tinkercad. It's probably the former. But anyway here's my problem
I've connected it according to picture
There is no power going through the anode. The cathode is going to ground. On the upper side 5v is going to base and the emitter sends signals to an input on pin 12.
If i digitalRead pin 12 and Serial.write it. it says 1. which is weird, least for my understanding.
As i understood there needs to be power going through the anode which lights up the diode inside the optocoupler. however there is no power going through the anode yet the emitter gives off a signal.
Anyone mind helping me out in understanding why this is?
Please ignore the resistors on the image