digitalRead always LOW / 0

Do you have a current limiting resistor in series with the opto-isolator input?