Calculating Spo2 with MAX30101 Sensor in Python on Raspberry Pi 4

Hi All

I have recently purchased a MAX30101 breakout board (SEN-16474) from Sparkfun and have been using it with a Raspberry Pi 4 and Python. I have been using the sparkfun-qwiic-max3010x library provided by Sparkfun to communicate with the sensor and collect data. The GitHub page for this library (GitHub - sparkfun/qwiic_max3010x_py: Python Module for the MAX3010x Particle Sensor) includes an example for calculating heart rate but not Spo2. The Arduino library (GitHub - sparkfun/SparkFun_MAX3010x_Sensor_Library: An Arduino Library for the MAX3015 particle sensor and MAX30102 Pulse Ox sensor) includes an example for calculating heart rate and Spo2.

I was wondering if there is an algorithm available or if it is possible to calculate Spo2 accurately in Python on the Raspberry Pi 4.

Thank You :folded_hands: