user28331: I have an L239D motor shield just like the Adafruit motor shield. I had a question in my mind. While making a robot, I could not connect my pins from various sensors in Arduino as the motor shield is already fitted on the board. So how can I connect my pins?
PS: I have the same board as shown in the picture 

user27157: That's a common problem that has many solutions.
The cheapest way is to solder the wires directly as many comments said. Though this is quite dirty, it should work for you.
The more professional way is to use these Arduino stackable header. They can even let you have a shield on top of your shield. This is the best choice in my opinion.

28331: <p>I have an L239D motor shield just like the Adafruit motor shield. I had a question in my mind. While making a robot, I could not connect my pins from various sensors in Arduino as the motor shield is already fitted on the board. So how can I connect my pins?</p>

<p>PS: I have the same board as shown in the picture <a href="https://i.stack.imgur.com/pbIU4.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pbIU4.jpg" alt="enter image description here"></a></p>
 27157: <p>That's a common problem that has many solutions.</p>

<p>The cheapest way is to solder the wires directly as many comments said. Though this is quite dirty, it should work for you.</p>

<p>The more professional way is to use these <a href="https://www.sparkfun.com/products/10007" rel="nofollow noreferrer">Arduino stackable header</a>. They can even let you have a shield on top of your shield. This is the best choice in my opinion.</p>
