 unsigned long codeValue; // The code value if not raw
 int codeLen; // The length of the code
 int toggle = 0; // The RC5/6 toggle state
+unsigned long sentLockMillis = 0;
 
 int lastButtonState;
 

    pinMode(ledPin1, OUTPUT);
    pinMode(RECV_PIN, INPUT);
    pinMode(BUTTON_PIN, INPUT);
  
    //WiFi.init();
    WiServer.init(sendPage);


int RECV_PIN = 5;
int BUTTON_PIN = 6;
int ANALOG_LIGHT_PIN = 1;

IRrecv irrecv(RECV_PIN);
IRsend irsend;
