The finished data logger prototype looks like this:
Prerequisite Software
Raspberry Pi OS
Python
Install Adafruit Python DHT
Run the example script:
The first parameter (11) indicates which sensor was used (DHT11) and the second, to which GPIO it is connected (not the pin number, but the GPIO number).
Logging
The fields that will be logged are:
Field
Description
Timestamp
UCT date and time
SensorId
Unique ID for the sensor
Location
Location of the sensor
Measurement
The mesaguement being logged “Temperature” or “Relative Humidity”
Value
Value measured by the sensor
Unit
Unit of measure “°C” or “%””
The example Python script logs the data collected every minute to the terminal and a csv file:
Running the scripts gives the screen output:
The csv file written looks like this:
Now we have data logging locally, the next part of the series will look at storing the data in a AWS Timestream database.
We are already using AI models whether we are conscious of it or not. Models are increasingly being embedded in all sorts of applications including those making high impact decisions. Trusting these models will be a key to their adoption.
This is a brief overview of the most common image-processing tasks that can be performed using the PyTorch Torchvision package. Including classification, localisation, object detection, instance segmentation and semantic segmentation.
This is the third in a series of posts to build a simple data logger system for temperature and relative humidity. Part 3 will use the Python Pandas package to visualize the data logged in the Amazon Timestream database.