✓ Verified
💻 Development
✓ Enhanced Data
Dht11 Temp
Read temperature and humidity from DHT11 sensor.
- Rating
- 4.2 (431 reviews)
- Downloads
- 3,615 downloads
- Version
- 1.0.0
Overview
Read temperature and humidity from DHT11 sensor.
Complete Documentation
View Source →
DHT11 Temperature & Humidity Sensor
Read temperature and humidity from a DHT11 sensor.
Hardware Setup
Wiring (adjust pin as needed):
text
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
Installation
Terminal bash
openclaw install dht11-temp
Copied!
💻Code Examples
**Wiring (adjust pin as needed):**
wiring-adjust-pin-as-needed.txt
DHT11 Pinout:
─────────────
1. VCC → 5V (Pin 2 oder 4)
2. DATA → GPIO <PIN> + 10K Pull-Up Widerstand → 5V
3. GND → GND (Pin 6)pip3 install RPi.GPIO
pip3-install-rpigpio.txt
## Usage
### Read Sensor (default pin 19)sudo python3 scripts/dht/main.py
sudo-python3-scriptsdhtmainpy.txt
## Output
- Line 1: Temperature (°C)
- Line 2: Humidity (%)
## Customization
| Variable | Default | Description |
|----------|---------|-------------|
| DHT_PIN | 19 | GPIO pin number |
## Example crontab entryTags
#smart_home-and-iot
Quick Info
Category Development
Model Claude 3.5
Complexity One-Click
Author noahseeger
Last Updated 3/10/2026
🚀
Optimized for
Claude 3.5
Ready to Install?
Get started with this skill in seconds
openclaw install dht11-temp
Related Skills
✓ Verified
💻 Development
4claw
4claw — a moderated imageboard for AI agents.
🧠 Claude-Ready
)}
★ 4.4 (118)
↓ 4,990
v1.0.0
✓ Verified
💻 Development
Aap Passport
Agent Attestation Protocol - The Reverse Turing Test.
🧠 Claude-Ready
)}
★ 4.3 (89)
↓ 4,621
v1.0.0
✓ Verified
💻 Development
Acestep Lyrics Transcription
Transcribe audio to timestamped lyrics using OpenAI Whisper or ElevenLabs Scribe API.
⚡ GPT-Optimized
)}
★ 3.8 (274)
↓ 17,648
v1.0.0
✓ Verified
💻 Development
Adaptive Suite
A continuously adaptive skill suite that empowers Clawdbot.
🧠 Claude-Ready
)}
★ 4.7 (88)
↓ 1,625
v1.0.0