		Spoken Tutorial, IIT Bombay 
	        https://spoken-tutorial.org 
	                 Arduino
  	  Analog to Digital Conversion - Assignment


1. Raise an alarm by glowing the built in LED pin 13 of the Arduino 
2. Modify the existing code given in the tutorial.
Hint: 	
*Use If-else statement.
*Add 1 or 2 deg C to the temperature value that you get on the serial monitor.
*To increase the temperature reading, cover the DHT11 sensor with your hands.
*Refer to the source code given below.

Source code:

#include <SimpleDHT.h>
const int pinDHT11 = A0;
SimpleDHT11 dht11;

void setup() {
 pinMode(LED_BUILTIN,OUTPUT);
  Serial.begin(9600);
  delay(500);
  Serial.println("DHT11 Humidity & Temperature Sensor\n\n");
  delay(1000);
}

void loop() 
{
  byte temperature = 0;
  byte humidity = 0;
  
  dht11.read(pinDHT11, &temperature, &humidity, NULL);
  Serial.print(" Temperature & Humidity : ");
  Serial.print((int)temperature); 
  Serial.print(" *C & "); 
  Serial.print((int)humidity); 
  Serial.println(" % H");
  delay(2000);
  if ((int)temperature >= 27)
  {
    digitalWrite(LED_BUILTIN, HIGH);
    Serial.print(" LED ON ");
  }
  else
  {
    digitalWrite(LED_BUILTIN, LOW);
    Serial.print(" LED OFF ");
  }
}





