Not sure if electromagnetic interference or bad connections

Hi guys.

I started a project and couldn't get it working. After hours of pulling my hair out I isolated the issue with the code. I thought I had a problem with a pus button I was using and the signal not getting to the Arduino properly.

So I opened the Button sketch that comes with the IDE. Just changed the pin number and added in Serial Println and had some interesting results...

I am getting low and high signals at random. Even with the button disconnected, the state of the input is changing.
If I move the cables sometimes it changes.

Here is a video of what I am talking about

I was wondering if you guys have experienced this before and can tell me if it is some kind of electromagnetic interference in my room or if the connections on the board might have a problem, or maybe you have some solution for me.

const int buttonPin = 22; // the number of the pushbutton pin
const int ledPin = 13; // the number of the LED pin

// variables will change:
int buttonState = 0; // variable for reading the pushbutton status

void setup() {
// initialize the LED pin as an output:
pinMode(ledPin, OUTPUT);
// initialize the pushbutton pin as an input:
pinMode(buttonPin, INPUT);

void loop() {
// read the state of the pushbutton value:
buttonState = digitalRead(buttonPin);

// check if the pushbutton is pressed. If it is, the buttonState is HIGH:
if (buttonState == HIGH) {
// turn LED on:
digitalWrite(ledPin, HIGH);
} else {
// turn LED off:
digitalWrite(ledPin, LOW);

Your input is floating. Change this line:

pinMode(buttonPin, INPUT);

to this:

pinMode(buttonPin, INPUT_PULLUP);

The input will read as LOW when the button is pushed.

Wait, this thing has pullup resistors in it?

It sure does, you just need to enable them.

It sure does, you just need to enable them.

Alright, I am an idiot for not knowing that. I have been using this thing for months and not known that.

Does it also have pull DOWN resistors? I have spent my whole life switching the positive and not the negative. So it would probably just be easier to use pulldown resistors if it has them.