I'm running a sketch that looks for inputs to digital pins 3, 4, 5, 6, and 7. The gist of the sketch is that it's a digitalRead() from 3-7 with a Serial.println() to the monitor. The odd thing is that without any pins connected I'm seeing "0" on some and "1" on others. I there a reason some will be "0" while other are "1" without anything connected? I imagine that all pins should read "0" until voltage is detected.
Based on my limited experience I draw the conclusion that a pull-up resistor will likely resolve my problem. Thoughts?