Mission Critical
Published © CC BY-NC-ND

Iot Weather Station Using Firebase and MIT App Inventor

Learn how to make a DIY weather station using NODE MCU!

IntermediateFull instructions provided2 hours4,213
Iot Weather Station Using Firebase and MIT App Inventor

Things used in this project

Hardware components

UTSOURCE Electronic Parts
UTSOURCE Electronic Parts
×1
NodeMCU ESP8266 Breakout Board
NodeMCU ESP8266 Breakout Board
×1
Gravity: DHT11 Temperature Humidity Sensor For Arduino
DFRobot Gravity: DHT11 Temperature Humidity Sensor For Arduino
×1
rain drop sensor
×1
tp4056
×1
Rechargeable Battery, Lithium Ion
Rechargeable Battery, Lithium Ion
×1
Jumper wires (generic)
Jumper wires (generic)
×1

Software apps and online services

Arduino IDE
Arduino IDE
MIT App Inventor
MIT App Inventor

Hand tools and fabrication machines

Soldering iron (generic)
Soldering iron (generic)
Drill / Driver, Cordless
Drill / Driver, Cordless
Solder Wire, Lead Free
Solder Wire, Lead Free
Hot glue gun (generic)
Hot glue gun (generic)

Story

Read more

Schematics

Schematic

Code

Code snippet #3

Plain text
void loop() 
{
 float h = dht.readHumidity();
 float t = dht.readTemperature();         // Reading temperature as Celsius (the default)
 int r = digitalRead(4);                  // Reading the Rain Sensor Data
  
 Firebase.setFloat ("Temperature",t);
 Serial.println(t);
 Firebase.setFloat ("Humidity",h);
 Serial.println(h);
 if (r == 1)
  {
   Firebase.setString("Rain", "Yeah");
   Serial.println("its raining");
  }
   else 
  {
   Firebase.setString("Rain", "Nah");
   Serial.println("no rains today");
  }
 delay(200);
}<br>

Credits

Mission Critical

Mission Critical

35 projects • 66 followers
Hello Geeks, Mission Critical is an Electronics Based Channel on YouTube

Comments