PC817 Optocoupler Datasheet, Pinout, Circuits, Arduino Examples
It functions as the inner phototransistor conducts when receiving the IR LED''s emitting light. These two parts are not hard-electrically connected; thus, it provides convenient optical noise