ESP32 + SCD41 + R1BBIT
In just 10 minutes, you can build a useful, fully functional project that measures CO₂ levels, temperature, and humidity in your room.
The data is available in the terminal, in widgets on your PC or Mac, and in the iOS and Android mobile apps.
The code is so compact that it’s hard to believe!
CONFIG
I2C_SCL 6
I2C_SDA 5
END_CONFIG
VAR T,F,H,CO2
VARS_PUBLISH(T,H,F,CO2)
SCD41_INIT(CO2,T,H,3000)
WHILE(1)
F=T*9/5+32
PRINT F
PRINT H
PRINT CO2
PAUSE 1000
WEND
