# Real-time multisensor room monitor on STM32 with FreeRTOS

DevFeed: [Real-time multisensor room monitor on STM32 with FreeRTOS](<https://devfeed.tech/articles/real-time-multisensor-room-monitor-on-stm32-with-freertos-61892.md>)

Original publisher: [Read original article](<https://blog.adafruit.com/2026/09/29/real-time-multisensor-room-monitor-on-stm32-with-freertos/>)

Author: Anne Barela

Published: 2026-09-29T17:52:52Z

Content type: article

Language: en

Sources: [Adafruit Industries](<https://devfeed.tech/sources/adafruit-industries-makers-hackers-artists-designers-and-engineers.md>)

Topics: [FreeRTOS](<https://devfeed.tech/topics/freertos.md>), [real-time](<https://devfeed.tech/topics/real-time.md>), [Wokwi](<https://devfeed.tech/topics/wokwi.md>)

Tags: [alarm](<https://devfeed.tech/tags/alarm.md>), [bits](<https://devfeed.tech/tags/bits.md>), [display](<https://devfeed.tech/tags/display.md>), [event](<https://devfeed.tech/tags/event.md>), [freertos](<https://devfeed.tech/tags/freertos.md>), [functional](<https://devfeed.tech/tags/functional.md>), [github](<https://devfeed.tech/tags/github.md>), [light](<https://devfeed.tech/tags/light.md>), [monitor](<https://devfeed.tech/tags/monitor.md>), [monitoring](<https://devfeed.tech/tags/monitoring.md>), [motion](<https://devfeed.tech/tags/motion.md>), [oled](<https://devfeed.tech/tags/oled.md>), [operating-system](<https://devfeed.tech/tags/operating-system.md>), [pir](<https://devfeed.tech/tags/pir.md>), [platformio](<https://devfeed.tech/tags/platformio.md>), [projects](<https://devfeed.tech/tags/projects.md>), [real-time](<https://devfeed.tech/tags/real-time.md>), [room](<https://devfeed.tech/tags/room.md>), [rtos](<https://devfeed.tech/tags/rtos.md>), [sensor](<https://devfeed.tech/tags/sensor.md>), [sensors](<https://devfeed.tech/tags/sensors.md>), [stm32](<https://devfeed.tech/tags/stm32.md>), [tasks](<https://devfeed.tech/tags/tasks.md>), [temperature](<https://devfeed.tech/tags/temperature.md>), [wokwi](<https://devfeed.tech/tags/wokwi.md>)

## AI overview

The STM32 Blue Pill room monitor uses FreeRTOS to coordinate a DHT22, photoresistor, PIR sensor, SSD1306 OLED, rotary encoder, and buzzer; it was simulated in Wokwi. Five tasks split the work, prioritizing motion and encoder input, sampling sensors about every two seconds, and refreshing the display at the lowest priority. Queues pass readings to display and alarm tasks, event bits track system state, and a mutex protects serial output. The buzzer signals temperatures below 18 °C or above 30 °C; motion keeps the system ACTIVE, while 15 seconds without motion makes it INACTIVE. The text reports 13 native PlatformIO unit tests and 10 Wokwi functional checks.

## Source excerpt

Phoebien Canete built a room monitoring system for the STM32 Blue Pill, running FreeRTOS and simulated in Wokwi. It reads temperature and humidity from a DHT22, light level from a photoresistor, and motion from a PIR sensor. An SSD1306 OLED shows one of four pages, and a rotary encoder switches between them. Five FreeRTOS tasks [...]