IoT Temperature Meter

This is a test project to build IoT temperature meter using ESP8266 WiFi module, DS18b20 temperature sensor and nodemcu. It sends temperature data to ThingSpeak.

This test is based on ESP8266 + ds18b20 + thingspeak+ nodemcu article and it’s files on GitHub plus ds18b20.lua. ESP8266 + ds18b20 + thingspeak+ nodemcu article describes how to build a simple temperature logger from small ESP8266 module.

Instead of using this tiny ESP8266 module (soldering components. etc.), I wanted to test the idea with Nodemcu dev kit. The ESP8266 + ds18b20 + thingspeak+ nodemcu article recommended to use ESPlorer to upload the needed files to the module (needs Java),  but I deciced to use alernative ESP8266 Lua Loader to to that (worked well).

I need to do several changes to the files:

init.lua: update wifi.sta.config(“apname”,”password”) command to have my real WLAN name and password.

dallas.lua: update line conn:send(“GET /update?key=Q67WTIRSOWGXJEO&field1=”..t1..” to have my ThingSpeak key

I also needed to do ome debugging to find to which are the right pins on my module to connect the DS18B20 Arduno module (NODEMCU dev kit pinout helped on this): the connectons go to +3.3V, GND and D3 pin.


Here are some pictures of my temperature logger using Nodemcu dev kit:




Draft posted from WordPress for Android and edited with WordPress


  1. Tomi Engdahl says:

    LUA scripts for ESP8266 with NodeMCU firmware

  2. Tomi Engdahl says:

    Here is an Interesting looking temperature and humidity sensor example:

    Primary IoT Make with NodeMcu ->ESP8266<-

    The world hottest WiFi IoT Chip, ESP8266. I know you feel hard(and suck…but don't let them know) when using SDK to program, so we decided to insert the Lua(an script language with easy syntax) to the ESP8266. Through NodeMcu, you can build up IoT(Internet of Things) BY YOUR OWN HAND. Much easier, more fun~

    1.The things you need to prepare
    A NodeMcu v2. Board
    An DHT11 or DHT22 sensor

  3. Tomi Engdahl says:

    EasyIoT Cloud
    Build your IoT in couple of minutes

    We want to build Easy Internet of Things framework. With EasyIoT Cloud framework you are able to build your most simple IoT in couple of minutes.


    1 × ESP8266
    1 × sensor modules

    ESP8266 WiFi DS18B20 temperature sensor (EasyIoT Cloud REST API)

    In this tutorial we will show how to build WiFi temperature sensor connected in EasyIoT Cloud. We will use ESP8266, DS18B20 and Arduino IDE.

  4. Tomi Engdahl says:

    Fail of the Week: ESP8266 Heats Temperature Sensor

    Richard Hawthorn] sent us in this interesting fail, complete with an attempted (and yet failed) clever solution. We love learning through other people’s mistakes, so we’re passing it on to you.

    First the obvious-in-retrospect fail. [Richard] built a board with a temperature sensor and an ESP8266 module to report the temperature to the Interwebs. If you’ve ever put your finger on an ESP8266 module when it’s really working, you’ll know what went wrong here: the ESP8266 heated up the board and gave a high reading on the temperature sensor.

    ESP8266 + temp sensor fail!


Leave a Comment

Your email address will not be published. Required fields are marked *