UNO Detecting 24 vac via TWO OF optocoupler (HCPL3700) not working

try reversing the LEDs

const int ledPin1 =  13;
const int ledPin =  12;