Introduction: ESP8266-12 Blynk Wireless Temperature LM35 Sensor

Picture of ESP8266-12 Blynk Wireless Temperature LM35 Sensor

ESP8266-12 blynk wireless temperature LM35 sensor

in this project using a esp8266, to show the temperature LM35 sensor on your smartphone or tablet.

if you have available sensors DHT11 DHT22 or you can use the following Instructable

DHT11 sensor

ESP8266-12 blynk wireless temperature, humidity DHT 11 sensor

DHT22 sensor

ESP8266-12 blynk wireless temperature, humidity DHT22 sensor

Step 1: Materials

Picture of Materials

ESP8266-12 (esp8266-7, ...... , esp8266-12e)

LM35 temperature sensor (10mv /°c)

power regulator 3,3v-5v

Step 2: Connections

Picture of Connections


VCC +3,3v

CH-PD +3.3v

ADC ---- pin2 (LM35)

GND ground

GPIO5 ground


LM35 sensor

pin 1 +3,3v

pin 2 output .---- ADC (ESP8266-12)

pin 3 ground


Step 3: Blynk App

Picture of Blynk App


store app

Blynk Apple Store

Blynk Google Play store


configure blynk

create new project ( use hardware model esp8266 )

generate AUTH TOKEN

send E-mail TOKEN ( copy TOKEN in the esp8266 sketch)

in the app Blynk use Value Display widget or Gauge widget

Step 4: Sketch


blynk library
SimpleTimer library


to programming the ESP8266-12, I use ide arduino 1.6.5 and CP2102 3.3V USB To UART Serial Interface Module Adaptor ( do not connect the power of the CP2102 to esp8266-12).


SP8266 sketch

change the sketch in the following lines with your data

char auth[] = "xxxxxxxxxx"; //insert here your token generated by Blynk

Blynk.begin(auth, "ssid", "password!"); //insert here your SSID and password



If you use ide arduino ADC ---- pin 17

range voltage 0-1.0v

range units 0-1024

Step 5: Thanks

thanks by catoplepa


MariusR20 made it! (author)2017-12-06

This "instructable" is nicely written and easy to follow, i had no problems in building it.

GeeksTipsDotCom (author)2016-12-17

Nice one! Do you have any idea about how much power it consumes? From my understanding the ESP 12 shouldn't go above 200mA, but the ESP-01 has peeks over 300mA... and my batteries goes crazy in transmissions :(

Other wireless temperature example

Tstef (author)2016-12-15

My values are out of whack when I use the equation 1/1024 * 100. At 19 deg c, I get values around 12.00 for the temperature and around 125 for the analogRead on the tempPin.

The sensor works properly without the ESP on an Arduino.

Any ideas what might be causing this?

Tstef (author)Tstef2016-12-15

Just some details.

The output voltage from the sensor seems to be right (~190mV at 19 deg C). However, when I measure the voltage from ADC pin to GND pin on the ESP-12F, it's around 130mV (also indicated by the analogRead function)-- which seems a bit far from the 1V-1024 conversion.

Tstef (author)Tstef2016-12-15

For some reason, 1.5V instead of 1V seems to be an appropriate conversion in my case but I have no idea why -- I know that ADC pin goes from 0 to 1V (or should at least).

MordimerM (author)2016-11-29

Hi you wrote GPIO5 to GND but on the pic GPIO15 is grounded?

Akin Yildiz (author)2016-03-15

please make one with ds18b20 sensor on a digital pin.!!

IvanV30 (author)2016-01-15

Hello all, problem solved.

It seems that it is very important to place home made functions in front of
void setup() and
void loop()

clebrw made it! (author)2015-11-25

I have a problem at compile time!

"error: 'sendUptime' was not declared in this scope"

IvanV30 (author)clebrw2016-01-14

Hi, I have the same problem. You already have a solution?

kyuubi87 (author)clebrw2016-01-12

Hi, I have the same problem. How do you have resolve it ?

catoplepa (author)2016-01-12

Hi, kyuubi87

Please check that you have library SimpleTimer in the folder


catoplepa (author)2015-11-29

Hi, clebrw

Please check that you have library SimpleTimer in the folder


johna151 (author)catoplepa2015-12-10

I have the same problem at compile

"error: 'sendUptime' was not declared in this scope"

i have everything in same folder :-(

whogarden (author)2015-11-14

Farenheit = (Celsius*1.8)+32

luigisogno (author)2015-11-12

Yeah, it works. thank you catoplepa.

What i have to change in the code to get Celsius and not Farenheit?

homerruma (author)2015-11-07

OK thank's

I wish there was a sketch for DS18B20.

I'll be waiting I believe will be written.

catoplepa (author)2015-11-07

Hi Homerruma

not because the two sensors are completely different, LM35 is an analog sensor while DS18b20 is a digital sensor.

the DS18b20 is certainly compatible with both Blynk that ESP8266 but that created a new sketch

homerruma (author)2015-11-07


Is it possible to replace the LM35 sensor with DS18B20?

catoplepa (author)2015-11-04

I'm sorry but I do not know what it means

whogarden (author)2015-11-04


When I try to load the sketch, after a few seconds, the message appears.

I use a 3.3V 3A capable.

I tried many baud rates...

But I finally I found that the module is in 74880 bauds! Yes 74880.

When I power it I receive these 2 lines :

ets Jan 8 2013,rst cause:1, boot mode:(7,3)

waiting for host

But there is no 74880 baud rate in arduino IDE.

Any idea of what does this message means?

Thanks a lot.

catoplepa (author)2015-10-31

Hi, whogarden

It happens while loading the sketch or after?

you can try to put the Baud rate 9600

Also check, that you have sufficient power (3.3 V).

and check your wiring

whogarden (author)2015-10-31


With the sketch below, I have the error :

warning: espcomm_sync failed
error: espcomm_open failed

And no answer to AT command.

Any idea about baud rate?

Something else?


whogarden (author)2015-10-23

Thank you for these very good explanations..

but many hours later, ... nothing.

I have no answer of the esp. (I done every thing like it is described). I have only the blue red lit.

No AT dialog and no AP MAC with Nodemcu firmware programmer (from 9600 to 115200 baud tested).

Does the esp send any character(s) when powered?

Thank for your help.

whogarden (author)2015-10-22


because I am very new with esp8266, can you explain in details what to do.

you say "to programming the ESP8266-12,.."

what are connections to do with the usb to uart converter?

Is the programm writen inside the esp by the IDE Arduino?

Thank you.

About This Instructable




More by catoplepa:ESP8266-12 blynk wireless simple virtual ledESP8266-12 blynk wireless temperature LM35 sensorESP8266-12 blynk wireless temperature, humidity DHT22 sensor
Add instructable to: