Dimming Code (Triac)

I think I found the issue, being new to arduino I misunderstood how the inputs work, and my input was always HIGH. Doing a bit of research now on how to wire a button for the input. Thanks!