4N35 is general purpose and widely used optocoupler or we can say it optoisolator & photocoupler & it is available in 6 pin dip and SMD packages. The device contains two parts one is an IR LED and the other part is the phototransistor. The working of the device is simple when power is applied…