power to the dip switch. Can you send me some basic tutorial
The dip switch is just like a button, for which there are many tutorials, and one or more examples in the Arduino IDE. Google "Arduino read button".
You will need a pullup or pulldown resistor (the pullup can be internal to the Arduino).