O'Reilly logo

Raspberry Pi Sensors by Rushi Gajjar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using your sensor station – make a temperature logger

Now that you know the trick of reading the ADC value from MCP3008 through an SPI, line we are ready to interface one of the sensors with MCP3008's channel 0. You can now use your sensor station to interface with up to eight sensors in parallel. To simplify the experiment, we are going to interface the temperature sensor with the sensor station board. Imagine that the RasPi has been connected at a remote place to log temperature data. Depending on our application, once in a month or after a certain time, we need the data to be recorded manually. To log this, we will make use of Python to store data in a text file, and read these values later on for analysis.

Know the LM36 temperature sensor

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required