I had the same question and it seemed most people said this sensor module just doesn't work.
I fooled around with the connections and managed to make a blob pulse according to my pulse with processing.
(it's quite subtle but it's mostly in synch with my pulse)
Arduino Code:
I used the one recommended earlier in this thread
http://www.ebay.co.uk/itm/NEW-KY-039-Finger-Measuring-Heartbeat-Sensor-Module-for-Arduino-/331127966386
Made a simple Processsing code:
(I'm a beginner, pls advise if something's off ^^;)
void setup(){
myPort = new Serial(this, Serial.list()[6], 115200);
size(300, 300);
background(0);
noStroke();
smooth();
}
void draw() {
while (myPort.available() > 30) {
int inByte = myPort.read();
println(inByte);
if(inByte>35){
ellipse(width/2, height/2, inByte2, inByte2);
}
else{
background(0);
}
}
}
Connections:
Most importantly, I connected the A0 to the S pin & Ground to - pin.
Leaving out the whole 5V all together. (why, I hv no clue. the pin fell out and it worked better without too much flickering)