catalog → boards → esp8266 (nodemcu / wemos d1)

📡 Monitor sensors over the internet with ESP8266 (NodeMCU / Wemos D1)

The classic for budget projects: get your sensor online for the price of a coffee. The generator hands you the code with the right ESP8266 headers.

⚡ Generate my code See all 54 sensors →
WiFi 2.4 GHzArduino IDE (C++)the cheapest with WiFi

This board's code

Example with temperature, humidity, CO₂ and motion — the generator builds it with YOUR sensors and your key:

// Gerado por Meca 3D Lab — meca3dlab.com.br
#include <ESP8266WiFi.h>
#include <ESP8266HTTPClient.h>

const char* SSID  = "SUA_REDE";
const char* PASS  = "SUA_SENHA";
const char* URL   = "https://meca3dlab.com.br/api/ingest";
const char* KEY   = "sk_live_SUACHAVE";
const long  EVERY = 30000;

void setup() {
  Serial.begin(115200);
  WiFi.begin(SSID, PASS);
  while (WiFi.status() != WL_CONNECTED) delay(400);
}

void loop() {
  // leia seus sensores aqui:
  float temp = 0;
  float hum = 0;
  float co2 = 0;
  float pir = 0;

  String body = "{\"temp\":24.7,\"hum\":55,\"co2\":620,\"pir\":0}";

  HTTPClient http;
  http.begin(URL);
  http.addHeader("Content-Type", "application/json");
  http.addHeader("X-Write-Key", KEY);
  http.POST(body);
  http.end();
  delay(EVERY);
}

Most-used sensors with it