Read Switch by joseph-jja

Cloned from Sketch Arduino Generic Blink by codebender

This sketch is missing a short description
Very basic sketch to read a reed switch and light a light. Basically read the state of 1 pin and set the value of another pin. This will basically allow us to turn a reed switch into a sensor similar to a PIR sensor for the PI so that it will be easier to use with nodejs.

Embed This Sketch

Use the following HTML code to embed the sketch code above in your blog or website.

<iframe style="height: 510px; width: 100%; margin: 10px 0 10px;" allowTransparency="true" src="https://codebender.cc/embed/sketch:134596" frameborder="0"></iframe>

Embed The Serial Monitor

You can also embed the Serial Monitor section! Just use this HTML code.

<iframe style="height: 510px; width: 100%; margin: 10px 0 10px;" allowTransparency="true" src="https://codebender.cc/embed/serialmonitor" frameborder="0"></iframe>