#include <dht22.h>
#define bocilPIN 4
#define LED_PIN 7

dht22 bocil;

void setup()
{
  Serial.begin(9600);
  pinMode(LED_PIN, OUTPUT);
}

void loop()
{
  Serial.println();
  Serial.println();

  int chk = bocil.read(bocilPIN);

  Serial.print("Humidity (%): ");
  Serial.println((float)bocil.humidity, 2);

  Serial.print("Temperature (C): ");
  Serial.println((float)bocil.temperature, 2);

  if(bocil.humidity>60){
    digitalWrite(LED_PIN, HIGH);
    delay(2000); 
  }
  else{
    digitalWrite(LED_PIN, LOW);
    delay(2000);
  }

  delay(2000);
}