Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

Arduino UNO with DHT11 Temperature and Humidity Sensor

View and Edit Project In Cirkit DesignerImage of Arduino UNO with DHT11 Temperature and Humidity Sensor

Circuit Documentation

Summary

The circuit in question consists of an Arduino UNO microcontroller board interfaced with a KY-015 DHT11 temperature and humidity sensor module. The Arduino UNO is responsible for controlling the sensor and processing the data it provides. The sensor module is powered by the 5V output from the Arduino and communicates with the microcontroller through one of its digital pins.

Component List

Arduino UNO

KY-015 DHT11 Temperature and Humidity Sensor

Wiring Details

Arduino UNO

KY-015 DHT11 Temperature and Humidity Sensor

Documented Code

Arduino UNO Code (sketch.ino)

#include <dht.h>;
#define tempPin 7; 
dht DHT;

void setup() {
  // Initialize serial communication at 9600 bits per second:
  Serial.begin(9600);
  // Set the data pin as input:
  pinMode(tempPin, INPUT);
}

void loop() {
  // Read the data from the sensor:
  int chk = DHT.read(tempPin);
  // The read data is now stored in the DHT object and can be accessed.
  // For example, to get the temperature and humidity:
  // float temperature = DHT.temperature;
  // float humidity = DHT.humidity;
}

This code initializes the DHT library for the temperature and humidity sensor and sets up the Arduino to read data from the sensor connected to digital pin 7. The setup() function begins serial communication and configures the data pin as an input. The loop() function reads the sensor data and stores it in the DHT object, from which temperature and humidity can be accessed. However, the code snippet provided does not include the actual data processing or output to the serial monitor. Additional code would be required to complete the functionality for data output and handling.