https://hackatronic.com/what-are-optoisolators-and-optocoupler-how-they-work/
What Are Optoisolators And Optocouplers, How They Work?