#**** LINNÉUNIVERSITETET ****
- Name NKECHI RYTA ESEMENE*
- **Student ID****ne22mb**
- [ ] A report on how to use DHT11 Temperature and Humidity sensor with Arduino Temperature and humidity monitoring(weather) monitoring with LoRa 32
863-928 LoRa WiFi BLE 0.96"12864 OLED LiPo management .A project for 2022 1DT305 -APPLIED INTERNET OF THINGS from the nnaeus university
This project is also based on the weather measurement i.e monitoring temperation and humudity some sensors including the DHT11 Temperature and humidity sensoR,. I used the ESP32 WiFi + Bluetooth module.
https://heltec.cn)
- [ ] **Description**
IOT temperature and humidity monitoring ,involves getting weather reading and setting information with electronic sensor .It is also a system that involves in acquiring weather and environment data using advanced electronic sensors and sending them to a web server via internet for real time weather monitoring and storage of data for future analysis and study. The follows are perfect devices to couple together .
- [ ] Microprocessor: ESP32
- [ ] Micro USB interface with a voltage regulator, ESD and short circuit protection.
- [ ] Onboard battery interface, integrated lithnum battery
- [ ] Onboard Wi-Fi, Bluetooth 2.4GHz ,antenna;
- [ ] Onboard 0.96-inch 128x64 OLED display, which can be used to display debugging information, battery power.
- [ ] Integrated CP2102 USB to serial port chip, convenient for program downloading, debugging information printing;
- [ ] Compatible with the Arduino development environment.
Overall , the amount of time spent on this project is too little initially , but i will speak for myself , as an individual with zero idea about IOT ,i salute the teachers for impacting knowledge and i also salute myself for learning something even if i am not perfect.I can not be specific on amount of time spent because it will be a continuity for me until i get it right
**[Objective]**
For studying weather season/system changes
Weather Measures/monitoring produces this spatialized weather through the integration and enhancement of multi-source meteorological data.
Easy arrangement of the setup for checking my atmosphere,microclimate for forecasting and predicting climates.
**Duration**
.
i choose this project because it is a very important accept of life ,weather is an everyday occurance.
**Purpose**
A temperature monitoring system controls and regulates the hotness and coldness of every environment. It is very important equipment especially in the health sectors , Aviation sectors and others fields.
It is a good start and lots of exposure with different devices and softwares. It is brain refreshing.
- [ ] * **Materials**
Esp32 NodeMCU
Breadboard
MicroUSB cable
Soldering iron
Jump wire
OLED screen
Ardunio IDE
**Items**
| Item | cost | where i bought it |
| -------------------- | ------- | ----------------- |
| sensor 16 in 1 kit | 249,99k | amazon.se |
| jump wires & kit 140p| 79,99k +120,99k | amazon.se
| NodeMCU ESP32 Heltec | 329,99k | amazon.se |
| MicroUSB cable | 19.90 | Biltema
| soldering kit | 149,00 | Kjell &Company |
| Breadbord | 99,90k | Kjell& Company |
| NodeMCU ESP32 Heltec | 329,99k | amazon.se |
|ESP32 NodeMCU module | 139,99 | amazon.se |
|
NodeMCU ESP32 Heltec with 0.9" OLED screen and SX1276 868MHz LoRa
240 MHz dual-core Tensilica LX6 microcontroller with 600 DMIPS.
https://www.amazon.se/dp/B08243JHMW?ref=ppx_pop_mob_ap_share

* Integrated 520 kB SRAM.
* Integrated 802.11BGN HT40 Wi-Fi transceiver, baseband, stack and LWIP.
* Integrated dual mode Bluetooth (classic and BLE).
LoRa 32 863 -928 LoRa Wifi BLE 0.96"12864 OLED Li-PO Management
Breadboard
830 connections
Kjell & company Sweden

DHT11 Temperature sensor module(16 in 1 sensors kit)

DHT11 is a reliable sensor for determining/measuring temperature and humidity.DHT11 digital temperature and humidity sensor is also a combined temperature and humidity sensor with a digital signal output that is calibrated.
The DHT11 is an essential, ultra minimal effort computerized temperature and humidity sensor,they have a data output which works on both 3.3 to 5 v and it has 4pins
It is suitable for connection to all common boards compatible with RN-Control, Raspberry Pi and all other microcontrollers.
Only one port is needed to be connected to the sensor.
The output occurs serially as a digital bit sequence. This makes the sensor ideal for monitoring the room climate or setting up a weather station.
Temperature controller are needed to keep stable degree
To guarantee that products have a high degree of reliability and outstanding long-term stability, it makes use of specialized digital modules and the acquisition of temperature and humidity sensor technology.
A high-performance 8-bit microprocessor is coupled to the sensor's resistive element and wet NTC temperature measurement devices.
The product has a high price, great quality, quick reaction, interference-resistance, and other benefits.
Because of the single-wire wiring design and the straightforward communication protocol, it is simple to connect with other applications and requires far less programming work.
ESP32-WROOM-32

ESP32 NODEMCU Module WiFi Development Board with CP2102
ESP32 NodeMCU Module WLAN WiFi Dev Kit C Development Board with CP2102 is a subseqent model to ESP8266.It has 38pins ,smaller and more convenient to use, 2.4 GHs Dual-mode WiFI bluetooth-chips ,V4.2 BLE and classic Bluetooth
Arduino was used , www.arduino.cn
i used window install , and i download completely then install arduino IDE accept the agreement and it was installed , exract and run . install arduino USB drive , you will the program completed ,then you will see it on yout computetr, then state it. go to folder explorer to flash but then you have to install hardware.
I chose to build this because weather is life ,it is easier to check climate change and also predict the atmospher.
**What purpose does it serve** it is just to monitor , measure and predict the atmosphere
**What in sight it will give** i have an understanding of how iot works , it requires dedication and commitment
**Computer setup**
I actally install all the IDE's first,after then i download and install the The CP210x USB to UART Bridge(hardware drive) because it act as a translator/communicator in sending and receiving information between the interfaces,i proceed to download and update i firmware .Before that i already connected my board with a usb to my computer. I tried two different ESP32 ,because i was on unable to flash and program at a time,But then i change computer , usb and i end up using ESP32-wroom-32 .i was pushing down boot botton for the connection to be successful ,and here is the link https://espressif.github.io/esptool-js/
i then try some code ,then connect my sensor (DHT11) to my board ,before then i import library ,i used Arduino IDE
https://www.arduino.cc and it prefrence set up.

The platform i prefere is Arduino , i tried atom ,thonny etc but i couldnt get them to work.
i ended up using Ardunior because it is much more easier and less time comsuption,
Ardinuo is an open source electronics platform . www.arduino.cc/en/Guide/Introduction
ESP32 was used as the wireless protocol
MQTT was used as the transport protocol
My project did not go smooth as i struggle to get it right with alot of materials ,
Putting the devices together

i used black jumper wire for GND(ground) ,red for power 3v3 , blue for the out in the sensor
CODE
***********************************************************************************
* Preferences--> Aditional boards Manager URLs :
* For ESP32:
* https://dl.espressif.com/dl/package_esp32_index.json
*
* *********************************************************************************/
#define BLYNK_TEMPLATE_ID "TMPLzbcOam0K"
#define BLYNK_DEVICE_NAME "DHT"
#define BLYNK_AUTH_TOKEN "fKpxv0BINv6oT7lPETNzp8fCzwR7i1Nn"
#define BLYNK_PRINT Serial
#include <WiFi.h>
#include <WiFiClient.h>
#include <BlynkSimpleEsp32.h>
#include <DHT.h>
char auth[] = BLYNK_AUTH_TOKEN;
char ssid[] = "Ryta"; // type your wifi name
char pass[] = "ryta1234"; // type your wifi password
BlynkTimer timer;
#define DHTPIN 13 // pin number
#define DHTTYPE DHT11
DHT dht(DHTPIN, DHTTYPE);
void sendSensor()
{
float h = dht.readHumidity();
float t = dht.readTemperature(); // or dht.readTemperature(true) for Fahrenheit
if (isnan(h) || isnan(t)) {
Serial.println("Failed to read from DHT sensor!");
return;
}
// You can send any value at any time.
// Please don't send more that 10 values per second.
Blynk.virtualWrite(V0, t);
Blynk.virtualWrite(V1, h);
Serial.print("Temperature : ");
Serial.print(t);
Serial.print(" Humidity : ");
Serial.println(h);
}
void setup()
{
dht.begin();
Serial.begin(115200);
delay(300);
Blynk.begin(auth, ssid, pass);
timer.setInterval(100L, sendSensor);
}
void loop()
{
Blynk.run();
timer.run();
}
I used by blynk because it displays sensors data ,i also display some pictures on data board .https://blynk.cloud
1 used wifi/hotspot from my andriod samsumg 10 phone ,i could send much data by the interval and the reading keeps changing in figures , every now and then.
since i used online blynk and Arduino ide ,mgtt is the tp.
here are few pictures of the project.





The temperature data keeping going down and is the final picture probably every other minutes , every 2minutes maybe.



The data keeps changing figures/reading
{"metaMigratedAt":"2023-06-17T04:11:33.944Z","metaMigratedFrom":"Content","title":"Untitled","breaks":true,"contributors":"[{\"id\":\"85f56ddc-d024-42b7-acf9-46d2b4cb16cc\",\"add\":12048,\"del\":6950},{\"id\":\"5ad66465-4873-4d9d-8fcb-2e7011ca5496\",\"add\":21985,\"del\":16870}]"}