ds18b20In this tutorial, you will be building a circuit to connect a temperature sensor to your Raspberry Pi, and writing a program to read the sensor data.

The circuit you will build is going to connect to the Raspberry Pi using the GPIO pins.

Following on from this you can also do -

  • How to read the temperature in Python.
  • How to turn on and off an LED from Python.
  • How to check a button press from Python.
  • A complete temperature logger.

Continue to the University of Cambridge for the full tutorial -
http://www.cl.cam.ac.uk/freshers/raspberrypi/tutorials/temperature/