When I set GPIO pin for input and read the value, I get high and low continuously. Doesn't matter which pin I set. I couldn't even light a led yet.
This is happening when I connect 40 pin ribbon connector cable. Everything turns normal when I don't connect it. What is the reason? Is it cable?
Edit: I changed side of the cable and added some pictures. Still same. I also tried with PUD_DOWN. This time it is stable 0 but I have no movement input what so ever.
Second edit: Okay, My breadboard has two seperate part on power and ground lines. As you can see from picture I am trying to get ground and power from other side which is not connected to raspberry pi :) So problem solved thanks everybody.
[![enter image description here][1]][1]