Weather Station Table no-10

Level 1_Stage 1) Gather Components: Arduino, DHT11 sensor, I2C LCD Display , Battery (9V), jumper wires, and 2 breadboards

Stage2) Connection of components

Stage 3) Coding

Code is as below-

#include <Wire.h>

#include <LiquidCrystal_I2C.h>

#include <DHT.h>

#define DHTPIN 2

#define DHTTYPE DHT11

#define BUZZER 9

DHT dht(DHTPIN, DHTTYPE);

// I2C Address usually 0x27 or 0x3F

LiquidCrystal_I2C lcd(0x27, 16, 2);

float temperature = 0;

float humidity = 0;

float heatIndex = 0;

void setup() {

pinMode(BUZZER, OUTPUT);

digitalWrite(BUZZER, LOW);

lcd.init();

lcd.backlight();

dht.begin();

lcd.setCursor(0,0);

lcd.print(“Weather Station”);

lcd.setCursor(0,1);

lcd.print(“Starting…”);

delay(2000);

lcd.clear();

}

void loop() {

temperature = dht.readTemperature();

humidity = dht.readHumidity();

if (isnan(temperature) || isnan(humidity)) {

lcd.clear();

lcd.print(“Sensor Error!”);

delay(2000);

return;

}

heatIndex = dht.computeHeatIndex(temperature, humidity, false);

lcd.clear();

lcd.setCursor(0,0);

lcd.print(“T:”);

lcd.print(temperature);

lcd.print((char)223);

lcd.print("C ");

lcd.print(“H:”);

lcd.print(humidity);

lcd.print(“%”);

lcd.setCursor(0,1);

lcd.print(“Feels:”);

lcd.print(heatIndex);

lcd.print((char)223);

lcd.print(“C”);

if (temperature > 35) {

digitalWrite(BUZZER, HIGH);

delay(300);

digitalWrite(BUZZER, LOW);

}

delay(2000);

}

Made by- Kaustubh Kulkarni( Aaryans World school, Gargi Pandekar (Abhinav Vidalaya),Rajdip Navle(Matayadosi Vidalay Ambad) and teacher Chitwan Brave ( St.Mary’s school

Experience- Learnt new things and very helpful volenteers

Level 2- We used the ESP32 and made the connections using the jumper wires on breadboards. Due to some software issues ESP32 software was not getting installed. We also made the code.