Adding library for my max30102

Hi all i am locking for library to suut with max 30102 and add it to my program i find sparkfun but still not working corectly i used to use DFRobo_max30102
This js the guthub link

I serch for it in platformio to.instal it but i didint find it ,i find the same name but another conten
So i am locking for way to add library ofline project
I am try to do.that with esp32 not arduino

The library is not registered in the PlatformIO registry.
However, you can easily include the library via lib_deps in platformio.ini:

platform = espressif32
board = esp32dev
framework = arduino
lib_deps =

The example sketch compiles fine for ESP32:

#include <Arduino.h>
#include <DFRobot_MAX30102.h>

DFRobot_MAX30102 particleSensor;

void setup() {
    while (!particleSensor.begin()) {
        Serial.println("MAX30102 was not found");

    particleSensor.sensorConfiguration(/*ledBrightness=*/0x1F, /*sampleAverage=*/SAMPLEAVG_4,
                                       /*ledMode=*/MODE_MULTILED, /*sampleRate=*/SAMPLERATE_400,
                                       /*pulseWidth=*/PULSEWIDTH_411, /*adcRange=*/ADCRANGE_4096);

void loop() {
    Serial.print(" IR=");

That is really amizing thank you