/*sensor suhu menggunakan DHT22 ;cd 16,2 dibuat tahun 2022*/
#include <LiquidCrystal.h>
const int psuhu = A0;
float suhu, data;
LiquidCrystal lcd(7,6,8,9,10,11);
void setup() {
analogReference(INTERNAL);
pinMode(psuhu, INPUT);
lcd.begin(15,2);
lcd.print("suhu saat ini");
}
void loop() {
data = analogRead(psuhu);
suhu = data * 110/1024;
lcd.setCursor(0,1);
lcd.print("suhu: ");
lcd.print(suhu);
lcd.print(" c");
delay(1000);
}