Hello guys,
I have a serious issue here. I have a
signal (5V) as shown

If I zoom to 5ns/div, then we can see some tiny noises between 4.9V and 5.0V or so as shown

Note that these pictures are given when I connect the
signal to an
oscilloscope.
Now the interesting part!
If I connect this
signal to the digital port and load the example sketch DigitalReadSignal (File>Examples>01.Basics>DigitalReadSignal), then I get a series of zeroes and ones as the output (Actual Output: 1 0 0 0 1 1 1 0 0 0 0 0 1 1 1 0 0 0 1 1 0 0 0 1 0 1). Founding this bizarre, I connected the
signal to the analog port and then I loaded the arduinoscope sketch. I got the following result

Now if I use the 5V line from the arduino, then I get the correct 5V reading on the serial monitor. The same goes for GND. But when I connect my
signal, everything is a total mess in the arduino!!!
What I did to try to rectify this which I failed miserably and as a last resort, I posted here:
1. Change interface from Linux to Windows. In linux, I am using Arduino 1.0.2 version while in windows I am using 1.0.3 version.
2. Change from Arduino Uno to Arduino Uno R3
3. Change USB cable
4. Tried to search this forum for hints
Can someone guide me on this? Also, I hope this post is in the correct forum. If not, please change it accordingly.
Thanks