Skip to content
Back to skills

Dht11 Temp

ASecurity

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

  • 21 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 7, 2026
toolspythonbash

Works with

  • cli

Security analysis

A96/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 2 files and shows the line behind each finding

Scanned September 7, 2026

npx -y skills add modbender/skill-library-mcp --skill dht11-temp --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Dht11 Temp?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Dht11 Temp
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/modbender-dht11-temp/badge)](https://www.skillsdirectory.com/skills/modbender-dht11-temp)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: dht11-temp
description: Read temperature and humidity from DHT11 sensor. Supports custom GPIO pins via CLI argument or environment variable.
metadata: {"openclaw": {"emoji": "🌡️", "requires": {"bins": ["python3", "sudo", "RPi.GPIO"]}}}
---

# 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

```bash
# Install dependencies
pip3 install RPi.GPIO
```

## Usage

### Read Sensor (default pin 19)
```bash
sudo python3 scripts/dht/main.py
```

### Read Sensor (custom pin)
```bash
sudo python3 scripts/dht/main.py 4     # Uses GPIO 4
```

### Using Environment Variable
```bash
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

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

Files in this skill

  • SKILL.md1.4 KB
  • scripts/main.py2.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in tools →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.