 }
 
 void setup() {
-  Serial.begin(115200);
-  Serial.println("starting");
-
-  pinMode(RX_IR_PIN, INPUT);
+  pinMode(RX_IR_PIN, INPUT_PULLUP);
   attachInterrupt(digitalPinToInterrupt(RX_IR_PIN),&handleInterrupt,CHANGE);
 
     // turn of the Access Point as we are not using it


  WiFi.begin(ssid, pass);
  if (WiFi.waitForConnectResult() == WL_CONNECTED) {
    Serial.println("WiFi connected");
  }
}


  long lastInterruptTime = globalLastInterruptTime;
  long duration = micros() - globalLastInterruptTime;
  if ((duration > END_TIME_VALUE)&&(globalCurrentEntry != 0)) {
    unsigned long currentEntries[MAX_CODE_ENTRIES];
    int numberEntries = 0;
    bool emitMessage = false;
    noInterrupts();
