Context Aware Environmental Parameter Monitoring Node using ESP32-C6

Published Dec 01, 2025
 8 hours to build
 Beginner

The system measures ambient environmental parameters temperature, humidity, light intensity and ultraviolet radiation. Further interprets them into meaningful environmental contexts such as heat index, optimal conditions or high UV exposure. Through on-board Wi-Fi, the data is transmitted wirelessly to a browser dashboard on a smartphone or computer, enabling real-time visualization and analysis without requiring a mobile app or cloud dependency.

display image

Components Used

ESP32-C6-DevKitC-1 v1.2
Microcontroller
1
Description

This project involves in providing context aware information related to heat index, UV index and light level by monitoring the environmental parameters temperature, humidity, UV intensity and light intensity.

Heat Index:  It is a measure of how hot it feels when factoring in humidity, not just air temperature. High heat index values are directly linked to health emergencies like heat cramps, heat exhaustion, and heat stroke. It allows for planning outdoor work, such as adjusting schedules or providing breaks, based on real-time conditions and forecasts. Below are the heat index levels 

  • Below 27°C:  Comfortable.
  • Caution (27–32°C): Fatigue is possible with prolonged activity.
  • Extreme Caution (32–41°C): Heat cramps or exhaustion are possible.
  • Danger (41–54°C): Heat cramps or exhaustion are likely, and heat stroke is possible.
  • Extreme Danger (above 54°C): Heat stroke is highly likely. 

UV Index:  It is a measure of the intensity of ultraviolet (UV) radiation from the sun. 

  • Immediate effects: Helps prevent short-term damage like sunburn.
  • Long-term risks: Reduces the risk of long-term problems such as skin cancer and cataracts.
  • Public awareness: Alerts people to the potential for damage and encourages protective measures, especially during peak hours.
  • UV index level
    • Low Risk (0-2): Enjoy the outdoors; no protection is needed for short exposure.
    • Moderate Risk (3-5): Seek shade during midday hours, and use sunscreen, a hat, and sunglasses.
    • High Risk (6-7): Take extra precautions during midday; wear sun-protective clothing, a hat, and sunglasses, and use sunscreen.
    • Very High Risk (8-10): Avoid midday sun, stay in the shade, and use all protection measures.
    • Extreme Risk (11+): Avoid direct sun exposure. 

Light levels, measured in lux (lx), vary dramatically across different environments and significantly impact human comfort, safety, and health. Proper lighting aligns with our natural circadian rhythms, promoting alertness during the day and restfulness at night.

List of components used https://www.digikey.in/en/mylists/list/YCSAJKYELJ

System collect environmental parameters using DHT11 sensor (temperature, humidity and heat index), ML8511 (UV index) and BH1750 (light intensity measurement). DS3231 RTC for time stamping of acquisition data. ESP32C6 DevKit is the heart of this system and it collects sensor data process and made available to access to user via Wi-Fi. BH1750 light sensor and DS3231 RTC are interfaced with ESP32C6-DevKit via its I2C port. ML8511 UV sensor is connected with ADC Channel 2  and DHT11 connected to GPIO10 of ESP32C6 as shown in Figure 1 (link for the circuit diagram https://app.cirkitdesigner.com/project/a104eb84-84c9-4f65-b9f3-19b6407e2fdd) and actual project development image on Figure 2 below:

Figure 1: Circuit diagram of the developed system

Figure 2: Developed system

From the Heat index and uv index values and time it will provide context alerts as follows: Based on the heat index values "Comfortable" "Caution", "Extreme Caution" and "Danger". 

Based on uv index level  "Low", "Moderate", "High", "Very High", "Extreme".

Based on the light level "Dark", "Indoor Light", "Outdoor Light", and "Strong Sunlight".

Based on time  "Morning ", "Daytime", "Night Mode".

Figure 3 shows the dashboard of measurement data

Figure 3: Environmental sensor dash board

short demo is available in the link

Codes

Downloads

Environmentalsensornode_image Download
Comments
Ad