HUMIDITY-WATER SENSOR ESP32

EX NO 5                             HUMIDITY-WATER SENSOR  

LINK : HUMIDITY WATER SENSOR LINK


Aim

To develop a water detection and monitoring system using an ESP32 microcontroller and a water level sensor for sensing moisture levels and activating alert devices.

Requirements

Hardware Requirements

  • Espressif Systems ESP32 Development Board

  • Water Level / Humidity Sensor

  • LED

  • Buzzer

  • Breadboard

  • Jumper wires

  • USB cable

  • Computer or laptop

Software Requirements

  • Arduino IDE

  • ESP32 Board Package

  • USB Driver for ESP32 Communication

Procedure

  1. Connect the water level sensor to the analog input pin of the ESP32 board.

  2. Interface the LED and buzzer with suitable digital output pins of the microcontroller.

  3. Ensure all components share a common ground connection.

  4. Connect the ESP32 board to the computer using a USB cable.

  5. Open the Arduino IDE and configure the correct ESP32 board and COM port.

  6. Create a program to read analog values from the water sensor continuously.

  7. Write conditional logic to activate the LED and buzzer whenever the sensed value exceeds the predefined threshold level.

  8. Compile and upload the program to the ESP32 board.

  9. Open the Serial Monitor to observe the real-time sensor readings.

  10. Test the setup by exposing the sensor to water and verify the activation of the LED and buzzer.

Result

The water level sensing system was successfully implemented using the ESP32 board, and the LED and buzzer were activated whenever the detected water level exceeded the specified threshold.

No comments:

Post a Comment