Sergioeabarcaf / ESP32-DHT11-Firebase

This project use ESP32 board geting temperature and humidity from sensor DHT11, this data send to Firebase

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ESP32-DHT11-Firebase

This project use ESP32 board geting temperature and humidity from sensor DHT11, this data send to Firebase

Requirements

Components

Is necessary have the following components:

  • ESP32
  • Sensor DHT11
  • Micro USB Cable

Libraries

To use this project it is necessary to have the following components installed.

Notes

DHT11

  • Define u pin data connected.
  • Define u type sensor (DHT11 for DHT11, DHT22 for DHT22-AM2302-AM2321, DHT21 for DHT21-AM2301)
#define DHTPIN 15
#define DHTTYPE DHT11

NTP

  • Config u timezone (get timezone), this is config for UTC -4 (Summer time in Santiago, Chile).
// -3 = UTC - 3
const long gmtOffset_sec = -3 * 60 * 60;
...
timeClient.setTimeOffset(gmtOffset_sec);

Firebase

  • Get your credentials Firebase credentials Firebase

Releases

V0.1

This release:

  • get temperature and humidity from DHT11 Sensor.
  • Sync timezone with NTP server.
  • Get epochTime.

V0.2

This release:

V0.2.1

This release:

  • send date formatted.
  • use UTC - 3.

About

This project use ESP32 board geting temperature and humidity from sensor DHT11, this data send to Firebase


Languages

Language:C++ 100.0%