Here are the instructions to build a simple temperature logger using a $5.00 I2C temperature sensor. The data is stored to the SD card and can be easily imported into excel. Simply by changing or adding other sensors other types of data can also be collected.
The following components are used for this project:
Raspberry Pi(single board computer)
Temperature Sensor (SF-SEN-11931)
The Zagros Raspberry Pi 2 starter kit also includes everything needed for this project except the temperature sensor!
Step 1: Wire up the Temperature Sensor
First, solder header pins or lead wires on to the sensor. We used headers so it would be could simply plug the sensor into a breadboard.
Make the following connections to the Raspberry Pi GPIO port. The ADD0 connection to ground determines the device I2C address. More than one sensor can be connected to the I2C bus, but they must each have a unique address.
Sensor RPi GPIO
ADD0 GND (note this sets the I2C device address)
NOTE: DO NOT CONNECT THE SENSOR VCC TO +5VDC, THIS WILL DAMAGE THE SENSOR