catalog → boards → raspberry pi

🍓 Monitor sensors over the internet with Raspberry Pi

For the Python crowd: a 15-line script reads your sensors and sends them — runs on any Pi with a network, from the Zero 2 W to the Pi 5.

⚡ Generate my code See all 54 sensors →
WiFi / EthernetPython 3Zero 2 W to Pi 5

This board's code

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

import time, requests

URL   = "https://meca3dlab.com.br/api/ingest"
KEY   = "sk_live_SUACHAVE"
EVERY = 30   # segundos

def ler_sensores():
    # preencha com a leitura de cada sensor:
    return {
        "temp": 24.7,
        "hum": 55,
        "co2": 620,
        "pir": 0
    }

while True:
    r = requests.post(URL, json=ler_sensores(), headers={"X-Write-Key": KEY})
    print(r.status_code)
    time.sleep(EVERY)

Most-used sensors with it