Need help with ardurino and 12v ledstrip

I need help with the programing.
what I want to achieve is that 8 led strips turnes on and off individually and takes a picture each time a led strip is turned on. I have already done this part.

The thing i need help with is to connect a button to start the program and it will stop when the last led light have turn off