LaunchKit · 2026
Back to Skills

dht11-temp

Read temperature and humidity from DHT11 sensor.

2
398 downloads
by @noahseeger

Setup & Installation

openclaw skills install @noahseeger/dht11-temp

Or with the ClawHub CLI, for registry-managed skill folders outside a full OpenClaw workspace:

npx clawhub install dht11-temp

What This Skill Does

Reads temperature and humidity from a DHT11 sensor connected to a Raspberry Pi. The GPIO pin is configurable via CLI argument or environment variable, defaulting to pin 19.

Supports both CLI argument and environment variable pin configuration, making it easy to use in automated scripts without editing code.

When to use it

  • Logging greenhouse temperature every 30 minutes via cron
  • Monitoring humidity in a server room or basement
  • Building a home weather station with a Pi
  • Alerting when humidity exceeds a threshold in a script
  • Capturing sensor data to a file for later analysis

Example Workflow

Here's how your AI assistant might use this skill in practice.

INPUT

User asks: read the current temperature and humidity from the DHT11 on GPIO 4

AGENT
  1. 1Sets DHT_PIN=4 or passes 4 as a CLI argument
  2. 2Runs sudo python3 scripts/dht/main.py 4
  3. 3Captures stdout output
  4. 4Parses line 1 as temperature in Celsius and line 2 as humidity percentage
OUTPUT

Temperature: 22.5°C, Humidity: 58%

Requirements

Accounts, API keys, or tools you or your AI assistant may need to set up while using this skill.

Raspberry Pi with GPIO pinsDHT11 sensor and 10K pull-up resistor (hardware)RPi.GPIO Python package (pip3 install RPi.GPIO)