How can I fix this error?

#include <ArduinoBLE.h>
#include <falldetectionradar.h>
#include <Adafruit_DotStar.h>

#define REAL_FALL 0x01
#define NO_FALL 0x02
#define SUSPECTED_FALL 0x00

#define LED_COUNT 1       // Number of LEDs in the chain
#define DATA_PIN 4        // The pin to which the Grove Chainable RGB LED 2.0 is connected
#define RADAR_PIN 7       // The pin connected to the MR60FDA1 radar sensor (Digital input)

Adafruit_DotStar strip(LED_COUNT, DATA_PIN, DOTSTAR_BGR);

FallDetectionRadar radar;
BLEService radarService("19B10000-E8F2-537E-4F6C-D104768A1214"); // Bluetooth® Low Energy LED Service

// Bluetooth® Low Energy LED Switch Characteristic - custom 128-bit UUID, read and writable by central
BLEStringCharacteristic switchCharacteristic("19B10001-E8F2-537E-4F6C-D104768A1214", BLERead | BLENotify, 20);

int last_val = 0;

void setup() {
  radar.SerialInit();
  Serial.begin(9600);
  delay(1500);
  radar.SerialInit();
  while (!Serial);

  // begin initialization
  if (!BLE.begin()) {
    Serial.println("starting XIAO BLE with 24GHz radar sensor demo failed!");
    while (1);
  }

  // set advertised local name and service UUID:
  BLE.setLocalName("24Ghz Fall Module");
  BLE.setAdvertisedService(radarService);

  // add the characteristic to the service
  radarService.addCharacteristic(switchCharacteristic);

  // add service
  BLE.addService(radarService);

  // start advertising
  BLE.advertise();

  Serial.println("Fall Module active, waiting for connections...");

  //add led settings
  strip.begin();         // Initialize the LED strip
  strip.show();          // Turn off all LEDs at the start
}

void loop() {
  // listen for Bluetooth® Low Energy peripherals to connect:
  BLEDevice central = BLE.central();

  // if a central is connected to peripheral:
  if (central) {
    Serial.print("Connected to central: ");
    // print the central's MAC address:
    Serial.println(central.address());

    // while the central is still connected to peripheral:
     while (central.connected()){
       radar.recvRadarBytes();                       //Receive radar data and start processing
       if (radar.newData == true) {                  //The data is received and transferred to the new list dataMsg[]
          byte dataMsg[radar.dataLen+1] = {0x00};
          dataMsg[0] = 0x55;                         //Add the header frame as the first element of the array
          for (byte n = 0; n < radar.dataLen; n++)dataMsg[n+1] = radar.Msg[n];  //Frame-by-frame transfer
          radar.newData = false;                     //A complete set of data frames is saved
          radar.Fall_inf(dataMsg);                  //Fall information output
        }

         uint8_t fall_inf = radar.Fall_inf();
        
          // Set LED color based on the fall state
          if (fall_inf == REAL_FALL) {
            setLedColor(255, 0, 0); // Red
          } else if (fall_inf == SUSPECTED_FALL) {
            setLedColor(255, 0, 0); // Red
          } else {
            setLedColor(0, 255, 0); // Green
          }
        
          delay(100); // Adjust the delay as needed

      }

    // when the central disconnects, print it out:
      Serial.print(F("Disconnected from central: "));
      Serial.println(central.address());
    }
}

// Function to set the color of the DotStar LED
void setLedColor(uint8_t red, uint8_t green, uint8_t blue) {
  strip.setPixelColor(0, red, green, blue);
  strip.show();
}

// Simulated function to get fall state (replace with actual sensor data)
uint8_t radar.Fall_inf() {
  return REAL_FALL;
}

Hi, which product did you use the code from, and which wiki did it come from?

It didn’t come from wiki. I used 24Ghz Fall Module ( MR24FDB1), Grove Chainable RGB Led and XIAO BLE Sense.

The error message “exit status 1” tells you that some required libraries are missing or that you are referencing undefined functions.Check to see if there is something wrong with your program. Since this is not part of a wiki, I can’t really help, just a small suggestion