Dht11 Temp

v1.0.0

Read temperature and humidity from DHT11 sensor. Supports custom GPIO pins via CLI argument or environment variable.

2· 648·1 current·1 all-time
byNoah@noahseeger
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
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.
Assessment
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.

Like a lobster shell, security has layers — review code before you run it.

Runtime requirements

🌡️ Clawdis
Binspython3, sudo, RPi.GPIO
latestvk9730xggq1xc5bywvfe6kcr55x81b2fb
648downloads
2stars
1versions
Updated 1mo ago
v1.0.0
MIT-0

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 <PIN> + 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

VariableDefaultDescription
DHT_PIN19GPIO pin number

Example crontab entry

# Read every 30 minutes
*/30 * * * * sudo python3 ~/scripts/dht/main.py >> /var/log/dht.log 2>&1

Comments

Loading comments...