Opto-isolation amplifier output is too off
Look at figure 5 in the data sheet: -

If your input is about 0.15 volts, for a 4 volt reference you will get about 3.1 or 3.2 volts out. I'm not saying the device is perfect but I think you are misinterpreting the results somewhat.