   delay(1000);
   digitalWrite(KEY_PIN, HIGH);
   delay(1000);
-  Serial.begin(9600);
   btSerial.begin(9600);
 }
 

    // Clear buffer for module communication
    content = "";
    // Send request for device name, using the address provided.
    Serial.println("Sending request");
    btSerial.write("at+rname?");
    btSerial.write((deviceAddress[i]).c_str());
    btSerial.write("\r\n");
    while(!btSerial.available()) {
      // wait for response

        character = btSerial.read();
        content.concat(character);
    }
    // If return matches with our expected response, that means device is in range :)
    if (content.startsWith(BluetoothDevices::name[i])) {
      output=HIGH;
    }
  }
