#include <LiquidCrystal.h>
#include <DHT.h>
#define DHTPIN 7
#define DHTTYPE DHT22
DHT dht(DHTPIN, DHTTYPE);
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
void setup() {
// put your setup code here, to run once:
lcd.begin(16,2);
dht.begin();
}
void loop() {
// put your main code here, to run repeatedly:
float temp = dht.readTemperature();
lcd.setCursor(0, 0);
lcd.print("Temp : ");
lcd.print(temp);
lcd.print("C");
lcd.setCursor(0, 1);
if (temp>60){
lcd.print("Fever");
}
else{
lcd.print("No Fever");
}
delay(500);
}