This tutorial of Robo India explains how to take digital input and output to arduino. Pushbutton is used for input and LED for output.
Detailed tutorial is found here-
http://roboindia.com/tutorials/tutori...
Thanks and Regards
Content Development Team
Robo India
http://roboindia.com