I've been working with a QT-1080 sensor which has a binary output mode. It uses 3 pins for the first 3 binary numbers and a detect pin, that fires upon any contact, to make 8 combinations possible. I want to do a simple thing: light up LED's that correspond to each of the 8 touch channels.

I'm very new to arduino, so can somebody tell if this code makes any sense? or if I'm overloading the arduino with unnecessary commands?