0% found this document useful (0 votes)
8 views1 page

This Is The Code To Print DHT Sensor Value On The LCD Screen

Uploaded by

Fatima
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views1 page

This Is The Code To Print DHT Sensor Value On The LCD Screen

Uploaded by

Fatima
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

#include <dht.

h>
#include <LiquidCrystal_I2C.h>

LiquidCrystal_I2C lcd = liquidCrystal_I2C(0x27, 20, 4)

dht DHT;

#define DHT11_PIN 7

void setup(){
[Link](); // initialise I2C LCD
[Link](); // Turn On the backlight of the I2C LCD
}

void loop(){
int chk = DHT.read11(DHT11_PIN);
[Link](0,0);
[Link]("Temp: ");
[Link]([Link]);
[Link]((char)223);
[Link]("C");
[Link](0,1);
[Link]("Humidity: ");
[Link]([Link]);
[Link]("%");
delay(1000);
}

You might also like