Int dhtpin=10; LiquidCrystal lcd(9,8,7,6,5,4)


Download 5.47 Kb.
Sana08.11.2023
Hajmi5.47 Kb.
#1756250
Bog'liq
include


#include
#include ;
int DHTPIN=10;
LiquidCrystal lcd(9,8,7,6,5,4);
DHT dht(DHTPIN, DHT22);
float temp;
void setup()
{
lcd.begin(16, 2);
dht.begin();
}
void loop()
{
delay(1000);
temp=dht.readTemperature();
lcd.setCursor(0, 0);
lcd.print("Harorat: ");
lcd.print(temp);
lcd.print(" C");
delay(1000);
}

Download 5.47 Kb.

Do'stlaringiz bilan baham:




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling