ESP32-Based Environmental Monitoring System with Multiple Sensors
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a sensor-based circuit utilizing an ESP32 microcontroller. The circuit includes various sensors such as a gas sensor (MQ-5), rain sensor, temperature and humidity sensor (DHT22), water sensor, and flame sensor (KY-026). The ESP32 microcontroller is the central unit that reads data from these sensors and processes it accordingly. The circuit is powered by a battery.
Component List
MQ-5 Gas Sensor
- Pins: VCC, GND, Digi Out, Analog out
- Description: A gas sensor used to detect the presence of gases such as LPG, methane, and hydrogen.
- Purpose in Circuit: To monitor gas levels and provide an analog output to the ESP32.
Rain Sensor
- Pins: AO, DO, GRD, VCC
- Description: A sensor used to detect the presence of rain.
- Purpose in Circuit: To detect rain and provide a digital output to the ESP32.
DHT22 (Wokwi Compatible)
- Pins: VCC, SDA, NC, GND
- Description: A temperature and humidity sensor.
- Purpose in Circuit: To measure temperature and humidity levels and provide data to the ESP32.
Water Sensor
- Pins: Signal, VCC, GND
- Description: A sensor used to detect the presence of water.
- Purpose in Circuit: To detect water levels and provide a signal to the ESP32.
ESP32
- Pins: EN, VP, VN, D34, D35, D32, D33, D25, D26, D27, D14, D12, D13, GND, VIN, 3V3, D15, D2, D4, RX2, TX2, D5, D18, D19, D21, RX0, TX0, D22, D23, BOOT
- Description: A microcontroller with Wi-Fi and Bluetooth capabilities.
- Purpose in Circuit: To read data from various sensors and process it.
Battery
- Pins: -, +
- Description: A power source for the circuit.
- Purpose in Circuit: To provide power to the ESP32 and other components.
KY-026 Flame Sensor
- Pins: A0, GND, VCC, D0
- Description: A sensor used to detect the presence of flame.
- Purpose in Circuit: To detect flames and provide a digital output to the ESP32.
Wiring Details
MQ-5 Gas Sensor
- VCC connected to ESP32 3V3
- GND connected to GND
- Analog out connected to ESP32 D34
Rain Sensor
- VCC connected to ESP32 3V3
- GRD connected to GND
- DO connected to ESP32 D18
DHT22 (Wokwi Compatible)
- VCC connected to ESP32 3V3
- GND connected to GND
- SDA connected to ESP32 D21
Water Sensor
- VCC connected to ESP32 3V3
- GND connected to GND
- Signal connected to ESP32 D35
ESP32
- VIN connected to Battery +
- GND connected to Battery -
KY-026 Flame Sensor
- VCC connected to ESP32 3V3
- GND connected to GND
- D0 connected to ESP32 D15
Battery
- + connected to ESP32 VIN
- - connected to GND
Code
No code is provided for this circuit.
This document provides a comprehensive overview of the circuit, including a summary, component list, wiring details, and code documentation. Each component is described in detail, and the wiring connections are clearly outlined to ensure proper assembly and functionality of the circuit.