This project is based on an example which dumps heart rate and SpO2 data on the serial port. We've added support for the BLE Pulse Oximeter Service for ESP32.
For interpreting raw data from the sensor we use Arduino-MAX30100.
Whatever other bits are here are in the public domain.
Install VSCode and the PlatformIO extension, get this source code, open the project in PlatformIO, build, upload, enjoy.