{
    "key": "scd41",
    "kind": "sensor",
    "model": {
        "aliases": [
            "scd41"
        ]
    },
    "driver": {
        "runtime": {
            "init": {
                "args": {
                    "i2c": "board.I2C()"
                },
                "class": "adafruit_scd4x.SCD4X"
            },
            "apt_packages": [],
            "pip_packages": [
                "adafruit-circuitpython-scd4x"
            ],
            "python_module": "drivers.scd41"
        },
        "targets": [
            "raspberrypi"
        ],
        "verified": {
            "by": null,
            "os": null,
            "date": null,
            "board": null,
            "reviewed_by": null,
            "evidence_url": null
        },
        "interface": "i2c",
        "connection": {
            "pins": [
                {
                    "role": "sda",
                    "notes": null,
                    "required": true
                },
                {
                    "role": "scl",
                    "notes": null,
                    "required": true
                }
            ],
            "i2c_addresses": [
                "0x62"
            ],
            "supply_voltage": "3.3V",
            "level_shift_required": null
        },
        "constraints": {
            "warmup_seconds": 60,
            "read_timeout_seconds": 10,
            "min_read_interval_seconds": 5
        },
        "failure_modes": [
            "Periodic measurement must be started explicitly after power on. Reading before start_periodic_measurement returns no data.",
            "One measurement every 5 seconds in periodic mode. Polling faster returns the same sample repeatedly.",
            "Automatic self-calibration assumes the sensor sees fresh air regularly. In a permanently occupied or sealed space it drifts the baseline downward and must be disabled.",
            "Readings are unusable for the first minute after power on."
        ]
    },
    "source": "platform-seed",
    "status": "draft",
    "platform": {
        "name": "SCD41 CO2 Sensor",
        "protocol": "i2c",
        "readings": [
            {
                "slug": "co2",
                "unit": "parts per million",
                "label": "CO2 Concentration",
                "data_type": "float",
                "range_max": 5000,
                "range_min": 400,
                "unit_symbol": "ppm",
                "device_class": "carbon_dioxide",
                "decimal_places": 0,
                "threshold_crit_low": null,
                "threshold_warn_low": null,
                "threshold_crit_high": 2000,
                "threshold_warn_high": 1000
            },
            {
                "slug": "temperature",
                "unit": "degrees celsius",
                "label": "Temperature",
                "data_type": "float",
                "range_max": 60,
                "range_min": -10,
                "unit_symbol": "°C",
                "device_class": "temperature",
                "decimal_places": 1,
                "threshold_crit_low": 0,
                "threshold_warn_low": 10,
                "threshold_crit_high": 40,
                "threshold_warn_high": 30
            },
            {
                "slug": "humidity",
                "unit": "percent",
                "label": "Relative Humidity",
                "data_type": "float",
                "range_max": 100,
                "range_min": 0,
                "unit_symbol": "%",
                "device_class": "humidity",
                "decimal_places": 1,
                "threshold_crit_low": 20,
                "threshold_warn_low": 30,
                "threshold_crit_high": 85,
                "threshold_warn_high": 70
            }
        ],
        "description": "Photoacoustic NDIR CO2 sensor with on-chip temperature and humidity over I2C. Ideal for indoor air quality monitoring.",
        "sensor_type": "gas",
        "manufacturer": "Sensirion",
        "model_number": "SCD41",
        "datasheet_url": "https://sensirion.com/media/documents/48C4B7FB/64C134E7/Sensirion_SCD4x_Datasheet.pdf",
        "read_interval_seconds": 30
    },
    "revision": 1
}