Program to use relays on an Open Source PLC (PLDuino)

Ok, makes sense. I do have it connected properly so I'm not sure what I can do to fix this. Any thoughts? Thanks!