+++
title = "Raspberry Pi 0 W + sensors + OLED display = temperature monitoring and calendar"
date = 2022-10-05
updated = 2023-11-11
+++
With this project, I monitor the temperature and humidity in my room.
Measurements are taken every 10 minutes and saved in an SQLite database.
Additionally, the display shows the upcoming appointments of the next five days: each of the 24 rows represents one hour and each pixel in a row represents 5 minutes.
In the middle, the time until the next appointment, the relative humidity and the current temperature are shown.
Below that, a graph shows the temperature of the last two days.
When activating another display mode (not active in the picture), this area of the display instead shows the next seven appointments.
### Hardware
- computer: Raspberry Pi 0 W
- temperature and humidity sensor: AM2302 (wired DHT22)
- OLED display: 1.5 inch SSD1351 (Waveshare)
- yellow push switch: TRU Components PBS-18B 701912
The components are connected to the Pi as indicated in the wiring diagram below (made using [Circuit Diagram](https://www.circuit-diagram.org/)).