





INTROCUCTION
In this project, we designed an IOT based temperature and Humidity sensor using Node MCU and DHT11 by interfacing with the BLYNK application.
HARDWARE REQUIRED
- Node MCU (esp82 66-12e v1.0) Wi-Fi Board -1pc
- NodeMcu USB Cable - 1pc
- DHT22 Sensor - 1pc
- Jumper Wires (male to male) – 20 pcs each
- 830 pt. Breadboard - 1pc
- 0.96 inch OLED Display -1pc
- 10K Ohm resistor - 2pcs
SOFTWARE REQUIRED
Arduino IDE 1.8.10 (programmable platform for Arduino)
Click here to download the software

SPECIFICATIONS
NodeMCU ESP8266 CP2102 Module:
- ESP8266 CP2102 NodeMCU LUA ESP-12E WIFI Serial Wireless Module
- Built-in Micro-USB, with flash and reset switches, easy to program
- Full I/O port and Wireless 802.11 supported, direct download, no need to reset
- Arduino compatible works great with the latest Arduino IDE/Mongoose IoT/Micro Python

DHT22 Sensor:
- Voltage: 3 to 5V power and I/O
- Current: 2.5mA max current use during conversion (while requesting data)
- Humidity Range: Good for 0-100% humidity readings with 2-5% accuracy
- Temperature Range: -40 to 80°C temperature readings ±0.5°C accuracy
- Sampling rate: No more than 0.5 Hz (once every 2 seconds)
- 4 pins, 0.1' spacing.
OLED Display:
- Display: 0.96" OLED Display
- Dot matrix size: 128x64
- Controller IC: SSD1306
- Working Voltage: DC 3.3v - 5v
- Colour: Blue

INSTALL LIBRARY
Weather Station by Daniel Eichhorn
APPLICATION REQUIRED
BLYNK:
Download from the Google Play Store and the Apple Store
CIRCUIT CONNECTION
- Connect the OLED pins to the NodeMCU, as described below and shown in the below electrical diagram:
- SDA ==> D1 (5)
- SCL* ==> D2 (4) * Also, you can find "SDC" in the text
- VCC ==> The SSD1306 can be powered directly by 5v (external) or 3.3v from the NodeMCU module.
- GND ==> GND
- Once we have connected the display, let's download and install its library on our Arduino IDE.
- Below the library that must be downloaded and installed on your Arduino IDE:
Click to open drive


- Once you restart the IDE, the library should be already installed.
- The library supports I2C protocol to access the OLED display using the built in Wire.h library:
CODE
Must mention your correct Wi-Fi ID and Password in the code
GETTING INDOOR DATA
- Usually, you will use the sensor on distances less than 20m a 10K ohm resistor should be connected between the Data and VCC pins. The Output pin will be connected to NodeMCU pin D3 (Given in the Diagram below)
- Once the sensor is installed on our module, download the DHT library from the Adafruit GitHub repository and install it in your Arduino's Library file. Once you reload your Arduino IDE, the "DHT sensor library" should be installed.
- Click to download the Outdoor weather data by clicking on this Weather Underground. ( https://www.wunderground.com/ )

- You will need to create an account on their website and get a Weather API key. Do it following the instructions at below link: https://www.wunderground.com/weather/api
