Constructed by Sensirion SCD30 and SPS30 sensors, Arduino Nano IoT and Raspberry Pi 4B. Used software is Mosquitto, Node-RED, InfluxDB and Grafana.
I recommend using IOTstack for an easy setup of the Raspberry Pi and its software.
The output from the Arduino is in the following JSON format:
{
"c": 478,
"t": 24.02,
"h": 38.39
}
Node-RED sets it to the following:
{
"co2": 478,
"temperature": 24.02,
"humidity": 38.39
}
with a change node and the following code:
{
"co2": msg.payload.c,
"temperature": msg.payload.t,
"humidity": msg.payload.h
}