What's wrong with my schematic?

Hi guys,
I'm new on this forum, and in arduino as well. I want to build a MIDI controller with arduino and convert serial to midi via Hairless Midi software, but i found something strange.

Here is my breadboard:


(Imgur: The magic of the Internet)

(Imgur: The magic of the Internet)

(The led is not used in this project, i just put it in to check if the button is working.) And here comes the strange thing. if i touch the led's resistor with my hand, the code, and Hairless Midi working fine. And i got the button's 0, 127 value like this:


(Imgur: The magic of the Internet)
But if im not touching it, the numbers are constantly changing. There is some schematic problem i cant recognize.

PLS help me! I know this question is kinda messy, but if you can help me, you will make my life sooo much easier

Thx guys

I did not follow the links to your pictures (you can host them here).

But it sounds like you have a floating input.
A pull-up resistor is a common fix.

Hi,
Welcome to the forum.

Please read the first post in any forum entitled how to use this forum.
http://forum.arduino.cc/index.php/topic,148850.0.html. then look down to item #7 about how to post your code.
It will be formatted in a scrolling window that makes it easier to read.

You should be able to post a copy of your circuit, in CAD or a picture of a hand drawn circuit in jpg, png, in your post.

Thanks.. Tom.. :slight_smile: