#include <Wire.h>
#include <Adafruit_Sensor.h>
#include <Adafruit_BME280.h>
#include <SoftwareSerial.h>
#include <TinyGPS++.h>
#include <LiquidCrystal.h>
// Initialize sensors
Adafruit_BMP280 bme;
TinyGPSPlus gps;
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
// Pin definitions
const int heartbeatPin = 7;
const int altitudePin = A1;
// Thresholds
const int riskAltitude = 3; // Example: 3rd floor
void setup() {
Serial.begin(9600);
lcd.begin(16, 2);