# ESP32 Firebase Example
This Wokwi project demonstrates how to use an ESP32 to connect to a Firebase Realtime Database.
## Features
- Connects to a Wi-Fi network.
- Sends and retrieves data from Firebase Realtime Database.
- Uses the `Firebase_ESP_Client` library.
## Project Setup
1. Add the necessary components in the Wokwi simulator:
- ESP32 microcontroller.
- Required virtual peripherals, such as LEDs or sensors, if needed.
2. Install the following libraries in your Arduino IDE:
- `Firebase ESP32 Client`
- `WiFi` library (built-in for ESP32).
3. Ensure your Firebase Realtime Database has valid security rules and replace the following in the code:
- `DATABASE_URL`: Your Firebase Realtime Database URL.
- `API_KEY`: Your Firebase Web API key.
## Compilation
This project uses the Arduino framework for compilation. Ensure that:
- The project has a valid `setup()` and `loop()` function in the code.
- The correct board (ESP32) is selected.
## How to Run in Wokwi
1. Open the project in [Wokwi](https://wokwi.com).
2. Click the **Play** button to start the simulation.
3. Monitor the serial output for Wi-Fi and Firebase connection status.
## Troubleshooting
- If the project does not compile, ensure all required libraries are installed and the `setup()` and `loop()` functions are implemented.
- Verify Wi-Fi credentials and Firebase keys.
- Ensure the Firebase Realtime Database rules allow read/write access.