Room weather is an embedded IOT system for monitoring temperature and humidity conditions and alerting of anomalous events. The system uses the MQTT protocol to publish/subscribe information over a TCP/IP connection to the internet. The front end of the system is implemented using the web based Graphical User Interface based on Node-Red flows.
- ESP-WROOM-32 Development board
- DHT11 Temperature/Humidity Sensor
- Piezo Buzzer
- 100Ω Resistor(for LED)
- LED
DHT11 Sensor | ESP32-Wroom Dev Board |
---|---|
VCC | 3V3 |
GND | GND |
DATA_PIN | GPIO_NUM_32 |
Piezo Buzzer | ESP32-Wroom Dev Board |
---|---|
VCC | GPIO_NUM_25 |
GND | GND |
LED | ESP32-Wroom Dev Board |
---|---|
Cathode | Resistor |
Anode | GPIO_NUM_33 |
Resistor | GND |
- Install Eclipse Mosquitto
- Install Node-RED
- Install PlatformIO Core
- Download project source code
- Extract ZIP archive
- Add your wifi ssid and password to Room-Weather-main/Room Weather/include/password.h file
- Run these commands:
# Change directory to project
> cd Room-Weather-main/"Room Weather"
# Build specific environment
> platformio run -e esp32dev
# Upload firmware for the specific environment
> platformio run -e esp32dev --target upload
# Clean build files
> platformio run --target clean
-
Run Node-RED
-
Go to local host in web browser: http://localhost:1880
-
Import flow from the right side menu by clicking import and uploading the flow.json file provided
-
Click deploy button at top of page
-
Go to Node red dashboard in web browser: http://localhost:1880/ui