You have to have the voting machine connected to a Raspberry Pi for this to work, so don't try it without that. See https://warrenkelly.wordpress.com/2016/10/12/raspberry-pi-project-voting-booth/ for information about the project.
A Scratch/Raspberry Pi project we just finished at school. Placed here simply so others can see the code. The Fritzing diagram for this one is pretty complex, so I have not included a .PNG file of it. If you want to see it, go to https://warrenkelly.files.wordpress.com/2016/10/voting-machine_bb.pdf