what is the reason behind DC level shift of the optoisolator ouput(collector of photo transistor) terminal?
R2 and R3 form a voltage divider on the 3.3 volt supply, so the voltage at the opto collector should be 1.65 volts.