top of page

Arduino Heart Rate Sensor


Source Code:

const int SENSOR_PIN = A0; //define sensor pin

void setup() { // put your setup code here, to run once: Serial.begin(9600); //set serial begin to 9600 bauds

}

void loop() { // put your main code here, to run repeatedly: Serial.println(analogRead(A0)); //print the data of the sensor to the serial monitor //delay by 1 second(1000 milliseconds) delay(50);

}


Single post: Blog_Single_Post_Widget
bottom of page