Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Project Documentation

ESP8266 NodeMCU with Rain Sensor and DHT11 Weather Station

Image of ESP8266 NodeMCU with Rain Sensor and DHT11 Weather Station

Circuit Documentation

Summary of the Circuit

This circuit integrates a microcontroller with a rain sensor and a temperature and humidity sensor (DHT11). The microcontroller used is the ESP8266 NodeMCU, which is capable of Wi-Fi communication and has multiple GPIO pins for interfacing with sensors and other peripherals. The rain sensor is used to detect rainwater and can provide both analog and digital signals. The DHT11 sensor is used to measure the ambient temperature and humidity.

Component List

ESP8266 NodeMCU

  • Description: A Wi-Fi capable microcontroller with a variety of digital and analog pins.
  • Pins: D0, D1, D2, D3, D4, 3V3, GND, D5, D6, D7, D8, RX, TX, A0, RSV, SD3, SD2, SD1, CMD, SD0, CLK, EN, RST, VIN

RAIN SENSOR

  • Description: A sensor that detects rainwater with both analog and digital outputs.
  • Pins: AO, DO, GRD, VCC

DHT11

  • Description: A sensor that measures temperature and humidity.
  • Pins: DATA, GND, VCC

Wiring Details

ESP8266 NodeMCU

  • D3: Connected to DHT11 DATA
  • A0: Connected to RAIN SENSOR AO
  • GND: Common ground connected to DHT11 GND and RAIN SENSOR GRD
  • VIN: Power input connected to DHT11 VCC and RAIN SENSOR VCC

RAIN SENSOR

  • AO: Connected to ESP8266 NodeMCU A0
  • GRD: Connected to common ground
  • VCC: Connected to power input from ESP8266 NodeMCU VIN

DHT11

  • DATA: Connected to ESP8266 NodeMCU D3
  • GND: Connected to common ground
  • VCC: Connected to power input from ESP8266 NodeMCU VIN

Documented Code

The following code is for the ESP8266 NodeMCU microcontroller:

void setup() {
  // put your setup code here, to run once:

}

void loop() {
  // put your main code here, to run repeatedly:

}

Filename: sketch.ino

Note: The code provided is a template and does not include specific functionality. It should be populated with the initialization of the sensors and the main logic for reading sensor data and performing actions based on those readings.