Hi there:
I'd like to find an suitable solution to achieve function likes the optocoupler.
But I'm not sure which application should be correct, so I attached the block diagram as following.
Could you help to provide some suggestion solution could reference?