Digital pins and grounds

You can always buy a sensor shield for your Arduino Mega. This makes connecting things to the Mega a lot easier. I have a sensor shield for an Uno and Mega: http://www.bajdi.com/?attachment_id=152 Next to every digital/analog pin there is a 5V and GND pin.