Use your Raspberry Pi as a data logger

Emotional, Burning, Unlimited Tuned Laboratory

Here’s how to log the CPU temperature of a Raspberry Pi and create a spreadsheet-based report on demand.

Data logging can be done for various reasons. In a previous article, I wrote about how I monitor the electricity consumption of my household. The Raspberry Pi platform is a perfect match for such applications as it allows communication with many kinds of analog and digital sensors. This article shows how to log the CPU temperature of a Raspberry Pi and create a spreadsheet-based report on demand. Logging the CPU temperature won’t require any additional boards or sensors.

Even without a Raspberry Pi, you can follow the steps described here if you replace the specific parts of the code…