This project involves setting up an ESP8266 board with a DHT11 sensor to report temperature and humidity data to an Express server. The data can be accessed through a mobile app called EnergyBrainer.
https://expo.dev/artifacts/eas/oDfnAHLe9LbCFfV68hZwbQ.apk
- ESP8266 board
- DHT11 temperature and humidity sensor
- USB cable for ESP8266 board
- Breadboard and jumper wires
- Arduino IDE / VS Code
- DHT sensor library for Arduino
- EnergyBrainer app
- Connect the ESP8266 to the breadboard.
- Connect the DHT11 sensor to the breadboard.
- Connect the VCC pin of the DHT11 sensor to the 3.3V pin of the ESP8266.
- Connect the GND pin of the DHT11 sensor to the GND pin of the ESP8266.
- Connect the data pin of the DHT11 sensor to D7 pin of the ESP8266.
- Connect the ESP8266 board to your computer using a USB cable.
- Open the Arduino IDE and select the correct board and port in the "Tools" menu.
- Install the DHT sensor library for Arduino.
- Copy and paste the code /energybrain/src/main.cpp into the Arduino IDE:
- Replace your_SSID and your_PASSWORD with your WiFi network credentials.
- Upload the code to the ESP8266 board.
- Install Node.js and NPM on your computer if you haven't already.
- Run
git clone https://github.com/DoggoDev-0/energybrain.git
- Open a command prompt or terminal and navigate to the express-temperature directory.
- Run the following command to install dependencies:
npm install
- Run the following command to start the Express server:
npm run start