 // Data wire is plugged into port 7 on the Arduino
 // Connect a 4.7K resistor between VCC and the data pin (strong pullup)
 #define DHT22_PIN 7
-const int analogInPin = A1;  // LDR Pin
 
+// LDR Pin
+const int ldrInPin = A1; 
+
+// Reseviour level pin
 const int switchPin = 8;
 
-int sensorValue = 0;        // value read from the pot
+// value for the temp sensor
+int rawLightValue = 0;        // value read from the pot
 
-int outputValue = 0;        // value output to the PWM (analog out)
+int outputLightValue = 0;        // value output to the PWM (analog out)
 
 int switchValue = LOW;
 // Setup a DHT22 instance

#include <DHT.h>

/*
  Web Server

 A simple web server that shows the value of the analog input pins.
 using an Arduino Wiznet Ethernet shield.

 Circuit:
 * Ethernet shield attached to pins 10, 11, 12, 13
 * Analog inputs attached to pins A0 through A5 (optional)

 created 18 Dec 2009
 by David A. Mellis
 modified 9 Apr 2012
 by Tom Igoe
 modified 02 Sept 2015
 by Arturo Guadalupi

 */

#include <SPI.h>
#include <Ethernet.h>

        // character) and the line is blank, the http request has ended,
        // so you can send a reply
        if (c == '\n' && currentLineIsBlank) {
          sendResponse(client);         
          break;
        }
        if (c == '\n') {
