https://electronicsbeliever.com/how-optocoupler-works/
How Optocoupler Works