GSM Shield connect to DPDT switch

Hey guys, I have a GSM Shield mounted onto a Arduino Leonardo and have programmed it to receive text messages. But i do not know how to connect it to a DPDT(double pole double throw) switch to control a motor which moves forward and backward. Or should I use a Relay instead?

Hi,

Search a tutorial for Arduino, GSM Shield doesn't affect if you use others digital o analog pins (D2 and D3 are used by GSM Shield). You can use a servo connected to a PWM output, and manage it rotation in your sketch.