it actually an input ac current and with the 100 Ohm it makes a voltage, I intend to play with that resistor to change when the light go on
I put the cap because I tought the led would flicker if the cap isn't there.
For a 25 AMp primary i have 16.5mA because of the 1520 ratio now with the 16.5mA I can put a 100 ohm like on the design to have 1,65 Veff or a 200 ohm to have 3,3Veff