PC817XNNSZ0F Series contains an IRED optically coupled to a phototransistor. It is packaged in a 4-pin DIP.