Incident light will increase the baseline leakage current in the photo diode. To minimize the baseline leakage, shield the opto-coupler from stray-light sources. If possible, test your circuitry in darkness and ambient light to determine whether ambient light will increase the leakage current to unacceptable levels.