Smart Health Notes
Smart Health Notes
Electrical Characteristics
Sensing Technology
Source Code :
// Constants
const int PULSE_SENSOR_PIN = 0; // Analog PIN where the PulseSensor
is connected
const int LED_PIN = 13; // On-board LED PIN
const int THRESHOLD = 550; // Threshold for detecting a heartbeat
// Configure PulseSensor
pulseSensor.analogInput(PULSE_SENSOR_PIN);
pulseSensor.blinkOnPulse(LED_PIN);
pulseSensor.setThreshold(THRESHOLD);
void loop()
{
lcd.setCursor(0, 0);
lcd.print("Heart Rate");
lcd.clear();
lcd.setCursor(0, 1);
lcd.print("BPM: ");
lcd.print(currentBPM);
}