Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <Wire.h>
- #include <Adafruit_Sensor.h>
- #include <PulseOximeter.h>
- #include <BluetoothSerial.h>
- PulseOximeter pox;
- BluetoothSerial SerialBT;
- void setup() {
- Serial.begin(115200);
- SerialBT.begin("HealthMonitor");
- pox.begin();
- }
- void loop() {
- pox.update();
- float heartRate = pox.getHeartRate();
- float oxygenLevel = pox.getSpO2();
- SerialBT.print("Heart Rate: ");
- SerialBT.println(heartRate);
- SerialBT.print("Oxygen Level: ");
- SerialBT.println(oxygenLevel);
- delay(1000);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement