Thanks i have edited post
I am using push button for input this is the button digram here and i am using Arduino MEGA