#include "DHT.h"
#define DHT22PIN_1 16
#define DHT22PIN_2 15
DHT dht_1(DHT22PIN_1, DHT11);
DHT dht_2(DHT22PIN_2, DHT11);
void setup()
{
Serial.begin(115200);
/* Start the DHT22 Sensor */
dht_1.begin();
dht_2.begin();
}
void loop()
{
float humi_1 = dht_1.readHumidity();
float temp_1 = dht_1.readTemperature();
Serial.print("Temperature_1: ");
Serial.print(temp_1);
Serial.print("ºC ");
Serial.print("Humidity_1: ");
Serial.println(humi_1);
delay(1000);
float humi_2 = dht_2.readHumidity();
float temp_2 = dht_2.readTemperature();
Serial.print("Temperature_2: ");
Serial.print(temp_2);
Serial.print("ºC ");
Serial.print("Humidity_2: ");
Serial.println(humi_2);
delay(1000);
}