This might be because I am placing my finger in the wrong place? or could be a problem with my code/ circuit.
Your finger should be placed between the LED and the sensor plate below it. If you did that correctly and the sensor works, the LED on pin 13 should blink at each heartbeat.
In the serial monitor you should get positive and negative values alternating in about the same rate as your heart beats.
In the serial monitor you should get positive and negative values alternating in about the same rate as your heart beats.
Hi, it is showing positive and negative values in the Serial Monitor ranging from around -50 up to around 0.4.
The problem is though, i'm not entirely sure how this sensor works but it seems to be picking something else up other than a pulse (maybe sunlight?) But it continues even after a finger is removed from the sensor.
I am using this data in processing to visualize the pulse and it isn't so clear because of the noise in the signal.
I don't know how exactly this sensor works as the don't provide schematics for it (and we see again, that you should never buy anything from a supplier that doesn't provide datasheets or equivalent documentation for their products).
I guess that the LED emits some light that goes through your finger and the sensor detects how much of it went through. That value probably changes in the rhythm of the heart beat. Have you tried covering the sensor and your finger in it so that no sun or synthetic light is reaching it? I would expect the sunlight not to have a high impact but synthetic light has. Usually these kinds of sensors are in a kind of part-finger-glove to keep away external light sources.