In this recipe, we are going to see how to use a digital sensor with the Intel Galileo board. Digital sensors are also widely used in electronics, from the simple motion sensor that we will use in this recipe, to more complex digital sensors such as the 3-axis digital accelerometers that can be found in smartphones.
For this recipe we will be using a simple PIR motion sensor. You can find this sensor at https://www.sparkfun.com/products/8630.
Then, connect the PIR motion sensor to the breadboard. Connect the red wire (the left wire in the schematic, on pin number 1) from the motion sensor to the red power rail, and the black wire (the right wire in the picture) to the blue power rail.
Finally, connect the yellow (signal) wire in the middle of the PIR motion sensor to pin number 7 on the Galileo...