Max30102 spo2 code has an error

Hello,
I tried to run Esp8266 with sparkfun_max3010x to measure heart rate and spo2 of a person, but it has an error, can you help me to fix the code, please.
Thank you

newTest.txt (6.8 KB)

Check that the Serial speed is the same in the sketch as set in the serial monitor.

1 Like

i checked it, both has same serial monitor

just a question: why did you include the “HardwareSerial_h”. Did you made changes to it, if so which ?

Can you share the sketch you used?

Does the standard sketch example5_heartRate.ino (or any other) work?