I use the Pin 7 to get the status of a push button. I put 10Kohm R on the - .
The status is unstable because arduino says thet I push it but it is not true...
int button = 7;
...
// var for reading pushbutton value
int buttonState = 0;
...
buttonState = digitalRead(button);
if(buttonState == HIGH)
{
myFunction();
}
EDIT :
ARDUINO PIN 7 <---> R 10Kohm <--> [switch] <---> VCC