Sabitlenmiş Tweet

Project Update: I’ve completed the final phase (V2.0) of my environmental monitor.
The heart of this project is a DHT11 sensor measuring temperature (in °C) and humidity (in %). To make the data readable, I used an SH1106 OLED screen as a live dashboard so I can monitor the environment at a glance.
How it works:
The firmware is structured as a Finite State Machine (FSM) with two primary states to ensure reliable performance:
🟢 NORMAL MODE: While the environment remains within safe limits (below 28.5 °C and 75% humidity), the OLED displays "SYSTEM STATUS: OK" and the RGB module glows a solid green.
🔴 ALARM MODE: If either threshold is crossed, the system transitions to alarm mode. The OLED displays the specific issue (e.g., "TEMP TOO HIGH!"), the RGB module flashes red, and the buzzer sounds a continuous alert.
This project helped me to understand non-blocking code. Using millis() instead of delay() was weird at first, but it was the only way to keep the buzzer beeping while the screen was still updating the numbers. I also made the data visible on the display so I won’t need to check the serial monitor every time.
Honestly, I’m proud of how this turned out. The link to the GitHub repo is in the comments. I'm still learning, so I'm open to any feedback or tips from you guys.
English






















