senseBox Blockly
senseBox-Logo
  1. ›
  2. Galerie

  3. ›
  4. IoT CO2-Ampel

IoT CO2-Ampel

Sensors
WIFI
ESPNOW
Ethernet
SD
LED
LED Matrix
Display
openSenseMap
LoRa
Aktivierung
Lora Message
TTN Mapper
Cayenne LPP
Bluetooth
Phyphox
QOOOL
Webserver
MQTT
Logic
Loops
Text
Time
Time control
RTC
NTP
Math
Audio
Variables
Functions
Advanced
Serial
Input/Output
Motors
Watchdog
301Initialise RGB LED (WS2818)Port:A ▾BrightnessNumberInitialize DisplayConnect to WifiNetworknameSSIDPasswordPasswordCO2 Sensor (Sensirion SCD30)Value:CO2 in ppm ▾CO2 Sensor (Sensirion SCD30)Value:Temperature in °C ▾intCO2 ▾1000< ▾002550colour with redgreenblueSet RGB-LED atPort:A ▾PositionColorintCO2 ▾1000≥ ▾intCO2 ▾1500< ▾and ▾02552300colour with redgreenblueSet RGB-LED atPort:A ▾PositionColorintCO2 ▾1500≥ ▾025500colour with redgreenblueSet RGB-LED atPort:A ▾PositionColorintCO2 ▾inttemp ▾Send measurement to openSenseMapPhänomen619e207a38aa6f001be9799cSend measurement to openSenseMapPhänomen619e207a38aa6f001be9799cConnect to openSenseMapSSL✓Restart device if disconnected?✓TypeStationary ▾senseBox ID619e207a38aa6f001be9799bAPI Key30e2321766b263dcc9b53a9a4e47b48a0682d9d9f4a25f16…SensorsCO2intCO2 ▾ppmTemperaturinttemp ▾CShow MeasurementsTitleValueUnitTitleValueUnit2500waitmillisecondsPrint on displayClear DisplayInterval: Interval60000msifdoelse ifdoelse ifdosetinttemp ▾tosetintCO2 ▾toArduino run first:Arduino loop forever:
11DataDataDataDateiname13000100500100500100TitleUnitTitleUnit01505050150000000latitudelongitudealtitudepDOPfixType30 10110110001000000000101197011100110022010090
{ }

Arduino Source Code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Code generated by senseBox Blockly on Fri Aug 22 2025 01:13:52 GMT+0000 (Coordinated Universal Time)
#include <WiFi101.h>
#include <SPI.h>
#include <Wire.h>
#include <Adafruit_GFX.h> // http://librarymanager/All#Adafruit_GFX_Library
#include <Adafruit_SSD1306.h> // http://librarymanager/All#Adafruit_SSD1306
#include <Adafruit_NeoPixel.h>
#include <SparkFun_SCD30_Arduino_Library.h> // http://librarymanager/All#SparkFun_SCD30_Arduino_Library
char ssid[] = "SSID";
char pass[] = "Password";
int status = WL_IDLE_STATUS;
int CO2;
<>

XML Blocks

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<xml xmlns="https://developers.google.com/blockly/xml" board="null">
  <variables>
    <variable type="int" id="=bAv.-jO~#.JK{3FzRrE">CO2</variable>
    <variable type="int" id="7@i~1}^OQ:FO7KQShfk`">temp</variable>
  </variables>
  <block type="arduino_functions" id="QWW|$jB8+*EL;}|#uA" deletable="false" x="153" y="79">
    <statement name="SETUP_FUNC">
      <block type="sensebox_wifi" id="6w`odrH26+6pf0*{Y_RC">
        <field name="SSID">SSID</field>
        <field name="Password">Password</field>
        <next>
          <block type="sensebox_display_beginDisplay" id="ge(L]Q/|[J}L^f5^sI{X">
            <next>
              <block type="sensebox_ws2818_led_init" id="{e_*~_Jw{!oV?Gj{#:yf">
                <field name="Port">1</field>
                <value name="BRIGHTNESS">
                  <block type="math_number" id="{DVNi9vjK#CRZa)44U$I">

Information about the Block

Select a Block to show the hint

This website uses cookies to enhance the user experience.
Impressum|Privacy|News|sensebox.de
Menu
    Blockly
    Tutorials
    Gallery
    Code Editor

    Login
    FAQ
    Settings

Which board are you using?

senseBox MCU

senseBox MCU-S2

senseBox MCU:mini

Here you can access the old blockly Version for the Arduino UNO or the senseBox MCU