catalog → boards → esp32
📶 Monitor sensors over the internet with ESP32
The community's most-used board: built-in WiFi, dozens of GPIOs, and the code comes ready from the generator — paste, set the WiFi and flash.
WiFi 2.4 GHzArduino IDE (C++)the community favorite
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 <WiFi.h>
#include <HTTPClient.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);
}