A simple greenhouse monitoring system made with ESP32. The system detects possible risks for plants, such as: temperature, humidity and light. The user will be warned whenever one of the conditions is inappropriate. The system also sends the data to a full stack application via an MQTT connection.
The website displays a table that breaks down the data received by the system, updating its value in real time. To improve scalability, the table will grow dynamically as new sensors are added to the system.
- The system has 2 sensors: DHT22 for monitoring temperature and humidity and the Photoresistor (LDR) sensor for measuring luminosity;
- The buzzer will sound whenever the system enters an alarm situation;
- Alarm situations:
- Temperature < 10º or Temperature > 20º
- Humidity > 60%
- Luminosity < 500
- If the system enters any alarm situation, the blue button next to the buzzer can be activated so the buzzer stops sounding;
- The button can also be pressed at any time to disable the alarm system if the user does not wish to be notified.
Compenent | Component Pin | ESP32 Pin |
---|---|---|
Photoresistor (LDR) | ldr1:AO | esp:34 |
Photoresistor (LDR) | ldr1:GND | esp:GND.2 |
Photoresistor (LDR) | ldr1:VCC | esp:VN |
DHT22 | dht1:VCC | esp:3V3 |
DHT22 | dht1:SDA | esp:23 |
DHT22 | dht1:GND | esp:GND.2 |
LCD 20x4 (I2C) | lcd1:GND | esp:GND.3 |
LCD 20x4 (I2C) | lcd1:VCC | esp:5V |
LCD 20x4 (I2C) | lcd1:SDA | esp:21 |
LCD 20x4 (I2C) | lcd1:SCL | esp:22 |
Buzzer | bz1:1 | esp:GND.1 |
Buzzer | bz1:2 | esp:12 |
Pushbutton | btn1:2.r | esp:GND.1 |
Pushbutton | btn1:1.r | esp:14 |