How to detect zero crosing with Arduino Uno

Looks like you are not useing a collector resistor.
It is best to also show a schematic we can refer to.
Please give links to parts so we do not have to hunt for them.
If as said by Delta_G you might have damage the output of the isolator.