After a few months not using arduino I decided to give it a try again, but it seems to be bugged now.
the digital read appears to be random. it changes from high to low whenever it contects with a wire, which is not connected to an energy source. I debugged it with a serialconnection and it indeed showed a random stream of 0 and 1's while only plain wire was connected. I have used different digital inputs but the bug remained.
Anyone knows what might be wrong?
Thanks in advance,