#include <DHT.h>
const int DHT_PIN = 15;
DHT dht(DHT_PIN, DHT22);
float temperature;
float humidity;
void setup() {
Serial.begin(115200);
}
void loop() {
temperature = dht.readTemperature();
humidity = dht.readHumidity();
Serial.println("Temp: " + String(temperature, 2) + "°C");
Serial.println("Humidity: " + String(humidity, 1) + "%");
Serial.println("---");
delay(1000);
}