This Raspberry Pi is truly a device for all makers. The Raspberry Pi can be a fun retro gaming device or it can be a serious scientific project, and many things in between. Maker Donsky, the mastermind behind Donskytech, has used one to create a lovely Raspberry Pi weather station project. It uses just one sensor so you don’t need much hardware to get off the ground and he also provided a very thorough tutorial to follow along with making it an excellent beginner's project.
The project takes data from a DHT22 sensor and displays information pulled from it in real-time. Users can access a web based dashboard that shows information in both text form as well as in the form of graphical charts. To access the data, all a user has to do is open a web browser and check out both the temperature and humidity in one place.
In order to make a web-based dashboard, the project requires a web server. This web server application runs on the Raspberry Pi so a model with wireless support is ideal. A file called "app.py" is used to generate the dashboard, via Python's Flask module which creates the HTML and handles sockets. A little Bootstrap HTML and CSS is used to format the web page, but the charts are created in real-time using Plotly.js. The Pi is also responsible for reading the DHT22 sensor data, via "dht22_module.py", a single module that handles both temperature and humidity data.
In the demonstration project created by Donsky, a Raspberry Pi 4B 8GB module is used, however, you could get away with a Raspberry Pi Zero 2 W, even a Raspberry Pi Pico could perform this task. The temperature and humidity sensor used is a DHT22 but a DHT11 would work, as well. A breadboard isn’t necessary, you can just use jumper wires to directly connect the DHT22 to the Pi.
Be sure to follow him for more cool creations as well as any future updates on this one.
Stay on the Cutting Edge
Join the experts who read Tom's Hardware for the inside track on enthusiast PC tech news — and have for over 25 years. We'll send breaking news and in-depth reviews of CPUs, GPUs, AI, maker hardware and more straight to your inbox.
Ash Hill is a Freelance News and Features Writer at Tom's Hardware US. She manages the Pi projects of the month and much of our daily Raspberry Pi reporting.
Well done Donsky ! ! !Reply
Thank you also tomshardware for featuring me on your site. I actually did not know that I was featured here until later.
I made an update to this project by the way, so instead of only displaying one DHT22/DHT11 sensor, it is now displaying multiple sensor readings all at the same time.
If you would like to know more then please see Raspberry Pi IoT Weather Station - Multiple Sensors
I hope you would like it also.