#include "Sensors.h"
// Create an instance of the Sensors class
Sensors sensors;
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.println("Hello, ESP32-S3!");
}
void loop() {
// put your main code here, to run repeatedly:
delay(1000); // this speeds up the simulation
// Update sensor values (replace these with actual sensor readings)
// Update sensor data
// Update sensor data
sensors.updateLeftSensor(random(0,10), random(0,10), random(0,10));
sensors.updateRightSensor(random(0,10), random(0,10), random(0,10));
// Access sensor data and use helper methods
Serial.println("sensors.left.temperature: "+(String)sensors.left.temperature+ " sensors.left.humidity: "+(String)sensors.left.humidity+" sensors.left.pressure: "+(String)sensors.left.pressure+" sensors.left.dewpoint: "+(String)sensors.left.dewpoint);
Serial.println("sensors.right.temperature: "+(String)sensors.right.temperature+ " sensors.right.humidity: "+(String)sensors.right.humidity+" sensors.right.pressure: "+(String)sensors.right.pressure+" sensors.right.dewpoint: "+(String)sensors.right.dewpoint);
// Compute and use the humidity difference
Serial.println(sensors.humidityDifference);
Serial.println(sensors.dewpointDifference);
}