Detecting a 12V Source With Opto Isolator?

image

You might want to revisit the emitter/base connections. :wink: