Christopher Mendez Martinez
Published © GPL3+

Internet of Things with Ubidots (ESP8266 + LM35)

Today we are going to learn to use the Ubidots platform to visualize data over the internet in a friendly way.

BeginnerFull instructions provided1 hour2,050
Internet of Things with Ubidots (ESP8266 + LM35)

Things used in this project

Hardware components

NodeMCU ESP8266 Breakout Board
NodeMCU ESP8266 Breakout Board
×1
Temperature Sensor
Temperature Sensor
×1

Software apps and online services

Arduino IDE
Arduino IDE
Ubidots
Ubidots

Story

Read more

Schematics

Schematics:

LM35 pinout:
1-Vcc
2-Out
3-Gnd

-Vcc to VV of the nodeMCU
-Out to A0 of the nodeMCU
-Gnd to Gnd of the nodeMCU

Code

Code and library: (Arduino IDE)

Processing
#include "UbidotsMicroESP8266.h"

#define TOKEN  "Token"  // Poner aqui tu TOKEN general de Ubidots
#define WIFISSID "ssid" // Poner aqui el nombre de tu Wi-Fi
#define PASSWORD "password" // Poner aqui la clave de tu Wi-Fi

Ubidots client(TOKEN);

void setup(){
    Serial.begin(115200);
    client.wifiConnection(WIFISSID, PASSWORD);
}

void loop(){
    float value1 = analogRead(A0);
    client.add("temperature", value1);
    client.sendAll(true);
    delay(2000);
}

Credits

Christopher Mendez Martinez
35 projects • 74 followers
Electronic Engineer and Tech YouTuber who loves automation, programming and sharing his knowledge with everyone.

Comments