The service code for the humidity sensor DHT 11 is given, but no information is provided from the sensor what should i add

#include "DHT.h"
#define DHTPIN 7

DHT dht(DHTPIN, DHT11);

void setup() {

Serial.println("DHT11 test!");

}

void loop() {
delay(2000);
float h = dht.readHumidity();
float t = dht.readTemperature();

Serial.print("Humidity: "));
Serial.print(h);
Serial.print("Temperature: ");
Serial.println(t);
}

7 posts were merged into an existing topic: Build a project with a humidity sensor and LCD screen. Get the data from the humidity sensor and display it on the LCD monitor as follows: If the hu