Online thermometer

MIT license

Simple thermometer on ESP8266 (NodeMCU V3) with web interface

🛠 Hardware

To build the device, you will need a NodeMCU V3 microcontroller (or analogues), a DS18B20 thermal sensor, a 4.7k resistor. Connect according to this scheme:


Instead of 6F22, you can connect any other DC source with a voltage of 3.7-20 V

💻 Software

In the file main.ino set SSID and password of your access point in which network the web interface should be available:

#define SSID "your ssid" 
#define PASS "your password"

Also if you connect the DS18B20 to other pin, change this value:

#define DS_PIN D8

After that, you can connect NodeMCU to your computer and upload the firmware.

🎯 Using

Open the serial monitor with 9600 baud rate and copy the local address of the web interface. It usually looks like Then open this in your browser. If everything is ok, you will see something in the likeness:

web view

The current temperature, the maximum temperature and the difference between the last two changes are displayed here. If the sensor is not connected (as in this example), a value of -127 °C will be output.

The page is updated automatically every 10 seconds. The solution is terrible, but I was too lazy to screw AJAX.

🤝 Contributing

If you have any ideas or found any bugs here, plz open the issue
or make a fork and offer a pull request. And it will be
great if you tell me about these ideas, maybe I’m already working on them.

👨‍💻 Author

The author of this repository and code – @dan-sazonov.
Reach me:
✈️ Telegram
📧 Email


View Github