← Back to Skills Marketplace
noahseeger

Dht11 Temp

by Noah · GitHub ↗ · v1.0.0
cross-platform ✓ Security Clean
685
Downloads
2
Stars
1
Active Installs
1
Versions
Install in OpenClaw
/install dht11-temp
Description
Read temperature and humidity from DHT11 sensor. Supports custom GPIO pins via CLI argument or environment variable.
README (SKILL.md)

DHT11 Temperature & Humidity Sensor

Read temperature and humidity from a DHT11 sensor.

Hardware Setup

Wiring (adjust pin as needed):

DHT11 Pinout:
─────────────
1. VCC     → 5V (Pin 2 oder 4)
2. DATA    → GPIO \x3CPIN> + 10K Pull-Up Widerstand → 5V
3. GND     → GND (Pin 6)

Important: The 10K pull-up resistor must be connected between DATA and VCC (5V)!

Installation

# Install dependencies
pip3 install RPi.GPIO

Usage

Read Sensor (default pin 19)

sudo python3 scripts/dht/main.py

Read Sensor (custom pin)

sudo python3 scripts/dht/main.py 4     # Uses GPIO 4

Using Environment Variable

export DHT_PIN=4
sudo python3 scripts/dht/main.py

Output

  • Line 1: Temperature (°C)
  • Line 2: Humidity (%)

Customization

Variable Default Description
DHT_PIN 19 GPIO pin number

Example crontab entry

# Read every 30 minutes
*/30 * * * * sudo python3 ~/scripts/dht/main.py >> /var/log/dht.log 2>&1
Usage Guidance
This skill appears to do exactly what it says: read a DHT11 sensor on a Raspberry Pi. Before installing, verify the script path (SKILL.md examples reference scripts/dht/main.py but the file is scripts/main.py), and update cron/examples accordingly. Install RPi.GPIO with pip3 as instructed and run with sudo (GPIO access commonly requires root). Note there is a minor bug: the script's return and the variable names in main may swap temperature/humidity output — test it once interactively to confirm output order. There is no network or credential access in the code, so there are no obvious exfiltration concerns.
Capability Analysis
Type: OpenClaw Skill Name: dht11-temp Version: 1.0.0 The OpenClaw skill bundle is designed to read temperature and humidity from a DHT11 sensor. It requires `sudo` privileges to access GPIO pins, which is a necessary and explicitly stated requirement for hardware interaction on Raspberry Pi. The `SKILL.md` instructions are clear and do not contain any prompt injection attempts. The `scripts/main.py` code correctly implements the DHT11 protocol, safely parses input arguments, and does not exhibit any malicious behaviors such as data exfiltration, unauthorized execution, or persistence mechanisms beyond the stated purpose of logging sensor data.
Capability Assessment
Purpose & Capability
The name/description (read DHT11 on GPIO) match the included Python script which uses RPi.GPIO and reads a GPIO pin. Minor inconsistencies: SKILL.md lists RPi.GPIO among required 'bins' (RPi.GPIO is a Python module, not a binary) and examples refer to scripts/dht/main.py while the repository file is scripts/main.py.
Instruction Scope
Instructions only tell the agent to install RPi.GPIO and run the script (with sudo or via DHT_PIN env/CLI arg). They do not attempt to read unrelated files, contact external endpoints, or harvest credentials. The SKILL.md references an incorrect script path (scripts/dht/main.py) which is inconsistent with the actual file (scripts/main.py).
Install Mechanism
No automated install spec is provided (instruction-only). SKILL.md recommends pip3 install RPi.GPIO, which is proportionate and expected. Nothing is downloaded from arbitrary URLs or written by an install step.
Credentials
No credentials or sensitive environment variables are requested. The optional DHT_PIN env var is appropriate for GPIO pin configuration. No unrelated secrets or config paths are required.
Persistence & Privilege
The skill is not always-enabled and does not request elevated persistent privileges beyond the normal need to run GPIO access as root (usage shows sudo). It does not modify other skills or system-wide configs.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install dht11-temp
  3. After installation, invoke the skill by name or use /dht11-temp
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
- Initial release of dht11-temp. - Read temperature and humidity from a DHT11 sensor via command line. - Supports specifying custom GPIO pins using CLI arguments or the DHT_PIN environment variable. - Output includes temperature (°C) and humidity (%) on separate lines. - Setup and usage instructions provided for Raspberry Pi with RPi.GPIO.
Metadata
Slug dht11-temp
Version 1.0.0
License
All-time Installs 1
Active Installs 1
Total Versions 1
Frequently Asked Questions

What is Dht11 Temp?

Read temperature and humidity from DHT11 sensor. Supports custom GPIO pins via CLI argument or environment variable. It is an AI Agent Skill for Claude Code / OpenClaw, with 685 downloads so far.

How do I install Dht11 Temp?

Run "/install dht11-temp" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Dht11 Temp free?

Yes, Dht11 Temp is completely free (open-source). You can download, install and use it at no cost.

Which platforms does Dht11 Temp support?

Dht11 Temp is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Dht11 Temp?

It is built and maintained by Noah (@noahseeger); the current version is v1.0.0.

💬 Comments