#include < Wire.h >
#include < Adafruit_AMG88xx.h >
#include < TFT_eSPI.h >
Adafruit_AMG88xx amg;
TFT_eSPI tft = TFT_eSPI();
const int buzzerPin = 2; // Change this to the pin where your buzzer is connected
float lastAvgTemp = 0.0;
const float tempThreshold = 2.0; // Change this to the temperature change threshold for the buzzer
void setup() {
Serial.begin(9600);
Wire.begin();
if (!amg.begin()) {
Serial.println("Could not find a valid AMG88xx sensor, check wiring!");
while (1);
}
tft.init();
tft.setRotation(3);