#include #include Adafruit_SHT31 sht31_bottom; // 0x44 — bottom Adafruit_SHT31 sht31_top; // 0x45 — void setup() { Serial.begin(115200); delay(1000); Wire.setPins(22, 23); Wire.begin(); if (!sht31_bottom.begin(0x44)) { Serial.println("SHT31 #1 (0x44) not found!"); while (1); } if (!sht31_top.begin(0x45)) { Serial.println("SHT31 #2 (0x45) not found!"); while (1); } Serial.println("Reptile Monitor - Dual SHT31 Test"); } void loop() { float temp1 = sht31_bottom.readTemperature(); float hum1 = sht31_bottom.readHumidity(); float temp2 = sht31_top.readTemperature(); float hum2 = sht31_top.readHumidity(); Serial.println("--- Bottom (0x44) ---"); Serial.print("Temp: "); Serial.print(temp1); Serial.println(" C"); Serial.print("Hum: "); Serial.print(hum1); Serial.println(" %"); Serial.println("--- Top (0x45) ---"); Serial.print("Temp: "); Serial.print(temp2); Serial.println(" C"); Serial.print("Hum: "); Serial.print(hum2); Serial.println(" %"); Serial.println(); delay(2000); }