Connecting an analog sensor
In this recipe, we are going to see how to connect an analog sensor to our Galileo board. Analog sensors are widely used in measurement systems, and can be used to measure a wide range of data such as temperature, light levels, barometric pressure, and so on.
In this recipe, we are going to see how to measure the ambient temperature using an analog temperature sensor.
Getting ready
For this recipe, apart from the Intel Galileo board, you will need a TMP36 analog temperature sensor.
You will also need a breadboard and a few male/male jumper wires to make the connections between the different components. Note that you will use this breadboard and the wires for most of the recipes in this book.
This is the list of all the extra components you will need for this recipe:
TMP36 sensor (https://www.sparkfun.com/products/10988)
Breadboard (https://www.sparkfun.com/products/12002)
Jumper wires (https://www.sparkfun.com/products/9194)
How to do it...
The first step is to assemble...