A simple ESP32 project that reads light intensity from an LDR sensor and displays the data on a web interface in real time.
- Reads analog values from an LDR (photoresistor)
- Serves a local web page using the ESP32's internal web server
- Displays real-time light intensity data
- Built with Arduino IDE
- ESP32 Dev Module
- LDR (photoresistor)
- 100kΩ potenciometer to calibrate (voltage divider)
- Arduino IDE
- ESP32 Core (version 3.0.7 recommended)
- Connect the LDR and potenciometer(pull down) as a voltage divider to an analog pin (e.g., GPIO 32).
- Open the project in Arduino IDE.
- Select your ESP32 board and port.
- Upload the sketch.
- Open the Serial Monitor to get the IP address.
- Access that IP in your browser to view the web interface.
MIT License