Dfrobot stcc4 i2c

From espressif/esp-claw-skills-lab · View interactive version

Dfrobot stcc4 i2c is an AI agent skill from the GitHub repository espressif/esp-claw-skills-lab. Use this skill when the user asks to detect or read Sensirion STCC4 CO2 concentration (ppm). This sensor readout also includes temperature and humidity.

How to use this skill

Skill file

dfrobot_stcc4_i2c

Use this skill when the user asks to detect or read Sensirion STCC4 CO2 concentration (ppm). This sensor readout also includes temperature and humidity.

Typical Chinese requests:

Typical English requests:

Run exactly one bundled Lua script with lua_run_script.

Script Args Schema

{
  "type": "object",
  "properties": {
    "action": {
      "type": "string",
      "enum": ["read", "start", "stop"]
    },
    "i2c_port": { "type": "integer", "minimum": 0, "maximum": 1 },
    "sda": { "type": "integer", "minimum": 0, "maximum": 63 },
    "scl": { "type": "integer", "minimum": 0, "maximum": 63 },
    "i2c_freq_hz": { "type": "integer", "minimum": 10000, "maximum": 1000000 },
    "addr": { "type": "integer", "minimum": 8, "maximum": 119 },
    "start_if_needed": { "type": "boolean" },
    "wait_after_start_ms": { "type": "integer", "minimum": 0, "maximum": 5000 },
    "verify_crc": { "type": "boolean" }
  }
}

Tool Call Inputs

{"path":"{CUR_SKILL_DIR}/scripts/read_sensor_data.lua","args":{"action":"read"}}

Use explicit address 0x64 and CRC verification:

{"path":"{CUR_SKILL_DIR}/scripts/read_sensor_data.lua","args":{"action":"read","addr":100,"verify_crc":true}}

Start continuous measurement only:

{"path":"{CUR_SKILL_DIR}/scripts/read_sensor_data.lua","args":{"action":"start"}}

Stop continuous measurement only:

{"path":"{CUR_SKILL_DIR}/scripts/read_sensor_data.lua","args":{"action":"stop"}}

Recommended Flow

  1. Confirm sensor wiring and I2C address.
  2. If user does not provide address, use STCC4 default address 0x64.
  3. Run {CUR_SKILL_DIR}/scripts/read_sensor_data.lua with action = "read" to get one sample.
  4. Use start and stop actions only when user explicitly asks to control measurement state.
  5. Report script output directly.
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.