Nodemcu firebase database Tutorial

(Last Updated On: February 18, 2020)



Nodemcu firebase- In This tutorial, you will learn how to create your firebase account and create your first project to monitor a sensor in real-time from anywhere around the world. As this is a getting started tutorial on how to use the firebase with Nodemcu esp8266 wifi module, that’s why I decided to use a variable resistor as the sensor to keep things simple, while in my upcoming tutorials I will use the firebase in some intermediate and advanced level projects.

For the detailed step by step explanation watch video Tutorial Click Here

The components and tools used in this project can be purchased from Amazon, the components Purchase links are given below:

Arduino Uno:
Mega 2560:
Variable resistor or Potentiometer:
Nodemcu esp8266 wifi module: Best price:
12v 10A SPDT relay:
2n2222 NPN transistors:
10k Resistor:
lm7805 Voltage Regulator:
330-ohm resistors pack:
female DC power jack socket:
470 UF capacitors:
5×7 cm Vero board:
female headers:
connection wires:
Super Starter kit for Beginners:
Jumper Wires:
Bread Board:
12v Adaptor:
PCB plate:
Variable Supply:
Digital Multimeter:
Vero Board / stripboard:
Soldering iron kit: “best” You guys should definitely purchase this:
Solder wire:
Wire Stripper:
PCB small portable drill machine:

*Please Note: These are affiliate links. I may make a commission if you buy the components through these links. I would appreciate your support in this way!

Nodemcu Firebase Setup:

Open your internet browser and go to,


Click on the add project.


Write the project name


check all the boxes and then click on the create project.


Click continue.

if you click on the develop you can see





Functions and

ML kit


First, let’s start with the project settings…


click on the service accounts…


click on the database secrets…


click show and copy ….


then open the program and paste this in the firebase authentication…


now for the firebase host…click on the database…


select realtime database…


copy this link and paste it in the programming…



now our settings are completed, now we can click on the verify button to compile our program and check for any errors.

Now let’s discuss the Circuit diagram…

Circuit Diagram:


The circuit diagram as you can see is really easy. Connect the rightmost and leftmost legs of the variable resistor with the Nodemcu esp8266 wifi module 3.3v and GND. Connect the middle leg of the variable resistor with the A0 pin of the Nodemcu.


Arduino Jason:

FirebaseArduino library:

Watch Video Tutorial:

Recommended For You

About the Author: Engr Fahad

My name is Shahzada Fahad and I am an Electrical Engineer. I have been doing Job in UAE as a site engineer in an Electrical Construction Company. Currently, I am running my own YouTube channel "Electronic Clinic", and managing this Website. My Hobbies are * Watching Movies * Music * Martial Arts * Photography * Travelling * Make Sketches and so on...


  1. hey man , i tried everything is working peacefully but the sensor data , its not getting uploaded to firebase , i checked for libraries also its working peaceful.please help me , thanks in advance

Leave a Reply