EX NO 3 TEMPERATURE SENSOR
LINK : TEMP. SENSOR
Aim
To interface a temperature and humidity sensor with an ESP32 microcontroller and monitor environmental conditions using serial communication.
Requirements
Hardware Requirements
Espressif Systems ESP32 Development Board
DHT11 Temperature and Humidity Sensor
USB cable
Breadboard
Jumper wires
Computer or laptop
Software Requirements
Arduino IDE
DHT Sensor Library
ESP32 Board Package
Procedure
Connect the DHT11 sensor to the ESP32 board using appropriate GPIO pins and ground connections.
Connect the ESP32 board to the computer through a USB cable.
Open the Arduino IDE and install the required DHT sensor library.
Select the correct ESP32 board and communication port in the IDE settings.
Create a program to initialize the DHT11 sensor and establish serial communication.
Write the code to read temperature and humidity values from the sensor periodically.
Upload the program to the ESP32 development board.
Open the Serial Monitor to observe real-time temperature and humidity readings.
Verify that the sensor values are displayed continuously and update correctly at regular intervals.
Result
The ESP32 board successfully interfaced with the DHT11 sensor, and the temperature and humidity readings were displayed on the Serial Monitor continuously.
No comments:
Post a Comment