Beginner's Robotic Arm

what kind of sketch would be that

One that does a simple "digitalRead" on the appropriate input pin, and prints the result repeatedly.