I made a simple project with low cost components : STM32F030F4 MCU MAX30102 Pulse Oximeter & Heart-Rate Sensor SSD1306 OLED Display MAXIM provided library waste a lot of ram (7k) and my MCU has only 4k. I've found alternative library with improved precision and low memory utilization: https://www.instructables.com/id/Pulse-Oximeter-With-Much-Improved-Precision/