break;
}
// DISPLAT DATA
Serial.print("humidity:");
Serial.print(DHT.humidity);
Serial.print(" temperature:");
Serial.println(DHT.temperature);
delay(200);
}
(6)Test Results:
After uploading test code, powering it up via USB cable and open the serial
monitor to set the baud rate to 9600, the serial monitor displays the value
of the current humidity and temperature as shown below: