#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27, 16, 2);
void setup() {
Serial.begin(9600); // For Serial Monitor
lcd.begin(0,0,0);
lcd.backlight();
Serial.println("We created a pulseSensor Object !"); //This prints one time at Arduino power-up, or on Arduino reset.
}
void loop() {
Serial.println("♥ A HeartBeat Happened ! "); // If test is "true", print a message "a heartbeat happened".
Serial.print("BPM: "); // Print phrase "BPM: "
lcd.setCursor(0, 0);
lcd.print("BPM: "); // Print phrase "BPM: "
delay(50); // considered best practice in a simple sketch.
}