#include <Arduino.h>
#include "DHTSensor.h"
#include "MPU6050Sensor.h"
#include "MAX30102Sensor.h"
#include "GPSSensor.h"
#include "MLX90614Sensor.h"
#define DHTPIN 38
#define DHTTYPE DHT22
DHTSensor dht22(DHTPIN, DHTTYPE);
MPU6050Sensor mpuSensor;
MAX30102Sensor maxSensor;
GPSSensor gpsSensor(18, 17); // RX = 18, TX = 17
MLX90614Sensor mlxSensor;
void setup() {
Serial.begin(115200);
dht22.begin();
mpuSensor.begin(21, 20);
maxSensor.begin(21, 20, 0x57);
gpsSensor.begin();
mlxSensor.begin(20, 21); // SDA = 20, SCL = 21
Serial.println("All sensors initialized...");
}
void loop() {
delay(2000);
// Existing Serial prints
dht22.readAndPrint();
mpuSensor.readAndPrint();
maxSensor.readAndPrint();
gpsSensor.readAndPrint();
mlxSensor.readAndPrint();
}