Arduino Project Hardware Troubleshooting

Job ID: 38710449

Budget: $10 – $30 CAD

I followed a step by step tutorial on building an automatic Hallowen candy dispenser and used the code provided. The tutorial is here https://www.youtube.com/watch?v=NNeSOPg2tVk schematics are attached and the code is here https://github.com/branklyvideo/automatic-candy-dispenser/blob/master/halloween_candy2.ino. After assembling it I can't get it to work. I think the issue maybe with the IR sensor but I am not sure how to troubleshoot or correct the problem (if that is even the problem). Wiring the switch was not clear but I tried wiring it both NO and NC. When I do hit the button when it is NC 2 green lights on the IR sensor turn on but the stepper motor will not turn.