 
 int lastButtonState;
 
-void loop()
-{
+void ir_loop() {
   // If button pressed, send the code.
   int buttonState = digitalRead(BUTTON_PIN);
   if (lastButtonState == HIGH && buttonState == LOW) {

  }
  lastButtonState = buttonState;
}

    pinMode(BUTTON_PIN, INPUT);
    pinMode(STATUS_PIN, OUTPUT);
    Serial.begin(9600);
    
    WiFi.init();
    Serial.println("Started webserver ...");
}

