Code that "breaks" arduino

bperrybap:
That isn't what I suggested at all.
I never said to use 5V as a signal source.
In fact the suggestions I made were all about NEVER using 5V or even an Arduino pin set to HIGH as a signal source.

I know your recent suggestions are all about not using the 5V source or a pin set to HIGH. You suggested putting a resistor in series with the 5V when I first posted my pictures back in post 33, sorry for the confusion. I thought I would try this since it wouldn't require any changes to my code.

bperrybap:
the Arduino pin could read anything and will likely bounce around between HIGH and LOW since the input pin is changing from being connected to a high signal to floating and floating is undefined.

OH I see it changes to floating, this clarifies a lot and explains why my code will not work.

bperrybap:
You seem to still not be understanding some very fundamental electrical concepts.
It also seems like you are either not reading or not understanding some of the recent posts about how to not use 5V as a signal source.
My suggestion would be to quit playing with the Arduino and take a big step back and spend some time reading and learning some electrical fundamentals since it appears that your current level of electrical understanding is a bit below what is needed for a project like you are attempting.

--- bill

As mentioned the confusion came from referencing a suggestion you made earlier. Playing with the arduino is helping me learn. I tested my arduino with my old code, and I learned that the input pins don't work as I expected. That's good to know. My understanding of Arduino and electrical concepts is lacking, as I've mentioned before. That's why I'm on this forum and I'm online looking up the things you've mentioned, because I don't understand the terms you're using and I'm trying to figure it out.