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