-//#include <WiShield.h>
 #include <WiServer.h>
 #include <IRremote.h>
+#include <dht11.h>
 
 int RECV_PIN = 5;
-int BUTTON_PIN = 6;
-int ANALOG_LIGHT_PIN = 1;
+int ANALOG_BUTTON_PIN = 5;
+int ANALOG_LIGHTSENSOR_PIN = 1;
+int ledPin1 = 4;
 
 IRrecv irrecv(RECV_PIN);
 IRsend irsend;
+dht11 DHT11;
 
 decode_results results;
 
 #define WIRELESS_MODE_INFRA	1
 #define WIRELESS_MODE_ADHOC	2
-
-#define ledPin1 4
 
 // Wireless configuration parameters ----------------------------------------
 unsigned char local_ip[] = {10,0,0,50};	// IP address of WiShield

char numAsCharBuff[2];
char ledChange;

//---------------------------------------------------------------------------

void setup()
{
    irrecv.enableIRIn(); // Start the receiver
    pinMode(BUTTON_PIN, INPUT);
    Serial.begin(9600);
    
    // Initialize WiServer and have it use the sendMyPage function to serve pages
    pinMode(ledPin1, OUTPUT);
    pinMode(RECV_PIN, INPUT);
    pinMode(BUTTON_PIN, INPUT);
    pinMode(ANALOG_LIGHT_PIN, INPUT);
  
    //WiFi.init();
    WiServer.init(sendPage);

int codeLen; // The length of the code
int toggle = 0; // The RC5/6 toggle state
unsigned long sentLockMillis = 0;
unsigned long tempLockMillis = 0;

// Stores the code for later playback
// Most of this code is just logging
