TEMPERATURE SENSOR ESP32

 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

  1. Connect the DHT11 sensor to the ESP32 board using appropriate GPIO pins and ground connections.

  2. Connect the ESP32 board to the computer through a USB cable.

  3. Open the Arduino IDE and install the required DHT sensor library.

  4. Select the correct ESP32 board and communication port in the IDE settings.

  5. Create a program to initialize the DHT11 sensor and establish serial communication.

  6. Write the code to read temperature and humidity values from the sensor periodically.

  7. Upload the program to the ESP32 development board.

  8. Open the Serial Monitor to observe real-time temperature and humidity readings.

  9. 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