Creating a Diagnostic Program, Need help with Serial Monitor

I am trying to create a simple program that I can ask, through the serial monitor, for certain values from certain pins or holes on the arduino 2560 board. I am sure this is simple but I am new to the language and I am not sure how to do it. Can someone give me a simple code or point me in the right direction? I just want to type something simple, like "Check1," that allows me to check the value that is on pin 1. Thanks for the help!

Well, you could install Bitlash and just ask it to "print d1"…

Bitlash is an interpreter that runs on the Arduino. More at: