SpO2-Algorithm

This is an algorithm to calculate the SpO2 by using the max30102 sensor. I'm trying to improve the code using the library. The goal is making it more precise.I didn't code the library and the algorithm it's recycling with some modifications by own. Thats why i'm trying to improve the code.