How to get Array Position State with digitalRead ?

6v6gt:
Important also to know is how the dip switches are wired and what you are going to do with pull up or pull down resistors.

Yes i just realized i need to send power to the dip switch.. Can you send me some basic tutorial for doing that? I'm searching but many people do really complicated projects I don't understand