Arduino with DHT11

Arduino with DHT11

Arduino with DHT11
Save Image

Basic temperature and humidity monitoring using DHT11 sensor.

Key Features

  • Digital output
  • Low-cost sensor
  • Works with 3.3V or 5V

Instructions

1. Connect the DHT11 (VCC to 5V, GND to GND, Data to pin 2).
2. Install the DHT library.
3. Upload the code.

Schematic

Schematic Download Schematic

Code Snippet

float humidity = dht.readHumidity();
Serial.println(humidity);
Download Full Code
Back to Projects