Tekko BDSimSimulatorProjects

আবহাওয়া স্টেশন: DHT22 + LCDDHT11 / DHT22 Arduino Weather Station with LCD

DHT sensor একটা data pin দিয়েই তাপমাত্রা আর আর্দ্রতা দেয়; Arduino দুটোই LCD আর Serial Plotter এ দেখায়।

The DHT sensor gives temperature and humidity on one data pin; the Arduino shows both on an I2C LCD and the Serial Plotter.

▶ ফ্রি চালিয়ে দেখো / Run it free Parts অর্ডার করো (WhatsApp)

যা যা লাগবে · Parts you need

তার লাগানো · Wiring

DHT22 temperature & humidity VCC→Arduino Uno 5V
DHT22 temperature & humidity GND→Arduino Uno GND
DHT22 temperature & humidity DATA→Arduino Uno D2
LCD 16x2 with I2C VCC→Arduino Uno 5V
LCD 16x2 with I2C GND→Arduino Uno GND
LCD 16x2 with I2C SDA→Arduino Uno A4
LCD 16x2 with I2C SCL→Arduino Uno A5

Code (Arduino C++)

#include <DHT.h>
#include <LiquidCrystal_I2C.h>
DHT dht(2, DHT22);
LiquidCrystal_I2C lcd(0x27, 16, 2);

void setup() {
  dht.begin();
  lcd.init();
  lcd.backlight();
  Serial.begin(9600);
}

void loop() {
  float t = dht.readTemperature();
  float h = dht.readHumidity();
  lcd.setCursor(0, 0); lcd.print("Temp: "); lcd.print(t); lcd.print(" C ");
  lcd.setCursor(0, 1); lcd.print("Hum:  "); lcd.print(h); lcd.print(" % ");
  Serial.print(t); Serial.print(" "); Serial.println(h);
  delay(1000);
}

ভিডিও · Videos

Arduino Bangla Tutorial Part - 45: How to use DHT11 Temperature and Humdity Sensor with A…DHT11 & DHT22 Sensors Temperature and Humidity Tutorial using Arduino

আরো project · More projects