Skip to content
Homebridge TestFlight
Devices and brands

DHT Sensor

homebridge-temperature-sensor-dht · v1.0.4

VerifiedLocal

Adds a DHT11 or DHT22 temperature and humidity sensor on a Raspberry Pi GPIO.

What it says it supports

Devices it names

  • DHT11
  • DHT22
  • Raspberry Pi

Shows up in Apple Home as from its README

Sensor readings in its code

What people report

DHT22-style sensors on Raspberry Pi work; DS18B20 will not be supported.

  • Works1
  • Partly works1
  • Won’t be supported1
DeviceStatusWhat they saidSource
DHT22 sensorWorksWorks with temperature and humidity offsets (humidity adjustment added v1.0.4)
Saved copy
Like this plugin, as it's just about the simplest DHT22 plugin I've found. I like that you have a temperature offset, what about a humidity offset? I have a couple of DHT22s that consistently read 7-8% higher than a calibrated hygrometer nearby, would be nice to be able to account for this.

Excerpt saved from GitHub on 2026-10-22.

Issue #5 · 2022-07
DHT sensor on Raspberry Pi Zero W 1Partly worksFrequent 'failed to read sensor' errors; old Pi CPU suspected
Saved copy
Describe Your Problem: In the statuslog I get the error: failed to read sensor. But wenn I wait a bit the device/accessoire shows values. Logs: [03/01/2023, 23:49:171 (HB Supervisori Started Homebridge v1.6.0 with PID: 1392 [03/01/2023, 23:49:29] Loaded config.json with 1 accessories and 1 platforms. [03/01/2023, 23:49:30 ] Loaded 0 cached accessories from cachedAccessories. [03/01/2023, 23:49:30] [03/01/2023, 23:49:30] Loaded plugin: [email protected] [03/01/2023, 23:49:30] Registering accessory 'homebridge-temperature-sensor-dht.TemperatureA ccessoryDHT [03/01/2023, …

Excerpt saved from GitHub on 2026-10-22.

Issue #8 · 2023-01
DS18B20 temperature sensorWon’t be supportedMaintainer declined; different sensor type, suggests another plugin
Saved copy
After more research, i will not add support for that, since the plugin name contains `dht` in it and that sensor is a different type of temperature sensor, i would suggest to try a plugin designed for that sensor. I found this plugin on NPM: https://www.npmjs.com/package/homebridge-ds18b20 @svenbla

Excerpt saved from GitHub on 2026-10-22.

Issue #3 · 2022-07

Gathered from the plugin’s GitHub issues, pull requests, discussions, wiki and docs, and from r/homebridge. These are individual reports, so check the linked thread and the date before you buy.

How it connects

Local

Raspberry Pi GPIO

You’ll need

  • Raspberry Pi
  • DHT sensor

Compatibility

Verified by HomebridgeYes
Homebridge versions>=1.3.5
Homebridge 2.0No
Node.js>=14.18.1
Settings in Homebridge UIYes
MatterNo
Platform nameTemperatureAccessoryDHT
LicenseApache-2.0

Community signals

Downloads a week5
Downloads a month16
GitHub stars4
Open issues1
Closed issues3
Last code push2022-09-03
Latest version1.0.4 (2022-09-03)
First published2022-07-05
Releases5

In ReReHome

Whatever this plugin publishes reaches Apple Home as a normal HomeKit accessory behind your Homebridge bridge, so ReReHome shows and controls it like any other.

Bridges get their own settings page listing the accessories behind them.

HomeKit services in its code

Found by scanning the published npm package. A plugin can register a service only for some devices.

  • HumiditySensor
  • TemperatureSensor