PCEval / esp32 /level1 /humidity_sensor_basic /description_esp.md
eunzee's picture
upload Arduino Uno and ESP32 project files
8e53a3e verified
|
Raw History Blame Contribute Delete
893 Bytes

Humidity Sensor Basic

Project Description

This is a simple ESP32 project that uses dht22 sensor to measure the humidity.

Hardware Components

  • ESP32 DevKit v1
  • DHT22 sensor

Circuit Description

The DHT22 sensor is connected to an ESP32. The VCC pin is connected to the 5V pin on the ESP32, and the GND pin is connected to the GND2 pin. The data pin is connected to digital pin 2 on the ESP32.

Expected Behavior

When the ESP32 powers up, it should:

  1. Initialize serial monitor
  2. Initialize and begin DHT sensor
  3. Continuously read the DHT sensor's humidity value
  4. Print humidity to the serial monitor in the following format: "Humidity: {humidity value}", for example: "Humidity: 40.0"

Success Criteria

The test is successful when:

  1. The correct humidity value is printed to the serial monitor.

Notes for Implementation

  • Use Arduino.h library for arduino core.