I'm having trouble getting the U118/MAX30102 heart rate sensor to function correctly. I'm using the checkForBeat() function in the Arduino IDE and Sparkfun 3010x library.
The sensor still detects heartbeats even if I place a small object on it, like an eraser!
I can make things better by playing with the sensor.setup() parameters, or by including a tiny delay() in the main loop, but I'd like to know if I'm doing it incorrectly.
Has anyone come across this problem with this sensor?