Instructables

Raspberry Pi Temperature Logger

Step 5: Datalogger Program

Picture of Datalogger Program
Load and run the example program using the following command:

python temp_logger.py 


The example program is very simple: 

It reads the temperature from the temperature sensor every 60 seconds and logs it to a text file (Tempdata.txt)

 
Remove these adsRemove these ads by Signing Up
Pro

Get More Out of Instructables

Already have an Account?

close

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!