DHT11 Temperature & Humidity Sensor for Openclaw

A specialized tool for reading real-time climate data from DHT11 sensors via Raspberry Pi GPIO pins.

noahseeger
v1.0.0
Feb 17, 2026
2
1.4k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install dht11-temp

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install dht11-temp using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is DHT11 Temperature & Humidity Sensor?

The DHT11 Temperature & Humidity Sensor skill is a robust utility designed to interface directly with hardware sensors on ARM-based devices like the Raspberry Pi. This integration allows users to pull accurate environmental metrics using a simple Python-based interface, making it a cornerstone for climate monitoring within the Openclaw Skills ecosystem.

By supporting configurable GPIO pins through command-line arguments or environment variables, this skill provides the flexibility needed for complex hardware setups. Whether you are building a personal weather station or a server room monitor, this skill streamlines the process of data acquisition from low-cost DHT11 sensors.

DHT11 Temperature & Humidity Sensor Use Cases

  • Monitoring indoor climate conditions in a smart home environment.
  • Setting up automated alerts for server room temperature spikes.
  • Collecting long-term environmental data for gardening or greenhouse management.
  • Integrating real-time sensor data into larger Openclaw Skills automation workflows.

How DHT11 Temperature & Humidity Sensor Works

  1. The skill initializes communication with the DHT11 sensor via a specified GPIO pin.
  2. It sends a start signal to the sensor and awaits the digital response pulse.
  3. The Python script decodes the bitstream to extract 40 bits of data representing humidity and temperature.
  4. Validated data is output as two separate lines for easy parsing by other Openclaw Skills or logging tools.

DHT11 Temperature & Humidity Sensor Setup

First, ensure your hardware is wired correctly with a 10K pull-up resistor between the DATA and VCC lines. Then, install the necessary Python library:

pip3 install RPi.GPIO

Run the skill using sudo to grant GPIO access:

sudo python3 scripts/dht/main.py

You can override the default GPIO pin (19) by passing a pin number as an argument or setting the DHT_PIN environment variable.

DHT11 Temperature & Humidity Sensor Data Schema & Taxonomy

The skill produces a simple, newline-delimited output format for maximum compatibility:

Line Data Type Unit
1 Temperature Celsius (°C)
2 Humidity Percentage (%)

Configuration is managed via the following parameters:

  • DHT_PIN: The GPIO pin number (BCM numbering) used for the data wire. Defaults to 19.

DHT11 Temperature & Humidity Sensor Advanced Features

  • Custom GPIO Mapping: Full support for dynamic pin assignment via environment variables or CLI arguments to match your specific wiring.
  • Automation Ready: Optimized for use with crontab to enable scheduled logging and environmental tracking.
  • Robust Integration: Built to follow the standards of Openclaw Skills, ensuring reliable data extraction from hardware pins even in shared environments.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Requires
Bins python3sudoRPi.GPIO
Github Stars: 0
forks: 0

Featured*