Arduino MEGA + two Limit Switch


Hi Guys,

I would like to build a prject with arduino MEGA and two Limit Switch.

I checked the component requests stie and I found the Limit Switch contributed by DVRJ but I did not find it in the Designed/Components list.

Could you give me a circuit plan and a code with this setup? (arduino MEGA + two Limit Switch)



I’m not sure if the limit switches are the same as micro switches, but if they are, this circuit is the one you seek:,11061,305155,305155