Is it normal that the UNO reads high input value on input 4 as soon as I connect a wire to the input? The wire is floating, not connected to anything!
Did I break the atmega??? :-[
It is normal that performing a digitalRead() on a pin with nothing connected to it (including just a wire going nowhere) will return random and invalid data. That is called a floating input and will go away if wired to an active circuit or by using pulldown or pullup resistors.