H11L1 Optocoupler

A google search of the form “fritzing part optocoupler” turns up this part which may do what you want. If not the generic IC part will let you make yourself a part.

Peter