catalog → boards → arduino uno r4 wifi
♾️ Monitor sensors over the internet with Arduino UNO R4 WiFi
The next-gen UNO has WiFi out of the box — and the generator hands you ready code using only the libraries that already ship with the board (nothing to install).
WiFi 2.4 GHzArduino IDE (WiFiS3)the UNO with internet
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 (Arduino UNO R4 WiFi)
#include <WiFiS3.h>
const char* SSID = "SUA_REDE";
const char* PASS = "SUA_SENHA";
const char* HOST = "meca3dlab.com.br";
const char* KEY = "sk_live_SUACHAVE";
const long EVERY = 30000;
WiFiSSLClient client;
void setup() {
Serial.begin(115200);
while (WiFi.begin(SSID, PASS) != WL_CONNECTED) delay(2000);
}
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}";
if (client.connect(HOST, 443)) {
client.println("POST /api/ingest HTTP/1.1");
client.println(String("Host: ") + HOST);
client.println("Content-Type: application/json");
client.println(String("X-Write-Key: ") + KEY);
client.println(String("Content-Length: ") + body.length());
client.println("Connection: close");
client.println();
client.print(body);
while (client.connected() && !client.available()) delay(10);
client.stop();
}
delay(EVERY);
}