As part of the practical analysis, a simple measurement node dedicated to monitoring environmental parameters in a conference room was designed and tested.
The system is based on an Edge Computing architecture—this means that the decision to activate supporting systems (e.g., ventilation) is made directly on the device. This shortens response time and increases the building's reliability in the event of a Wi-Fi network failure.
Wiring Diagram (Hardware) The following diagram shows the physical connection structure implemented on the virtual microcontroller:
DHT22 Wiring:
LED Wiring:
The following code performs parameter readings every 2 seconds. It includes a function to filter out erroneous readings (isnan) and threshold logic for comfort levels, set to a temperature range of 18°C to 24°C and humidity between 30% and 60%.
Analysis of the prototype showed that the DHT22 sensor, despite its simplicity, is sufficient for monitoring general work comfort in a conference room. In a real-world IoT-managed building deployment, a Wi-Fi section would be added to the code to handle data transmission to a central database. This would allow the property manager to generate daily reports and optimize the building's heating curve.