Adafruit_Python_DHT

Python library to read the DHT series of humidity and temperature sensors on a Raspberry Pi or Beaglebone Black. (by adafruit)

Adafruit_Python_DHT Alternatives

Similar projects and alternatives to Adafruit_Python_DHT

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better Adafruit_Python_DHT alternative or higher similarity.

Adafruit_Python_DHT reviews and mentions

Posts with mentions or reviews of Adafruit_Python_DHT. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-05-11.
  • ModuleNotFoundError: No module named 'Adafruit_DHT'
    1 project | /r/adafruit | 21 Oct 2022
    I am currently trying to set up a dht humidity sensor with my raspberry pi 4. I followed the instructions from the adafruit_dht Github using the setup.py file but I get this import error when I run my test file. I have tried installing it using ```sudo pip3 install Adafruit_DHT``` and I get this error
  • Need help with my RPI-0 terrarium monitor (temp/humidity), V.1 is failing & need a fresh start on V.2
    2 projects | /r/RASPBERRY_PI_PROJECTS | 11 May 2022
    """ 'temp_humidity.py' ================================== Example of sending analog sensor values to an Adafruit IO feed. Author(s): Brent Rubell Tutorial Link: Tutorial Link: https://learn.adafruit.com/adafruit-io-basics-temperature-and-humidity Dependencies: - Adafruit IO Python Client (https://github.com/adafruit/io-client-python) - Adafruit_Python_DHT (https://github.com/adafruit/Adafruit_Python_DHT) """ from requests.exceptions import ConnectionError # import standard python modules. import time # import adafruit dht library. import Adafruit_DHT # import Adafruit IO REST client. from Adafruit_IO import Client, Feed # Delay in-between sensor readings, in seconds. DHT_READ_TIMEOUT = 5 # Pin connected to DHT22 data pin DHT_DATA_PIN = 4 # Set to your Adafruit IO key. # Remember, your key is a secret, # so make sure not to publish it when you publish this code! ADAFRUIT_IO_KEY = "xxxxxxxxxxxxxxxxxxxxxxxx" # Set to your Adafruit IO username. # (go to https://accounts.adafruit.com to find your username). ADAFRUIT_IO_USERNAME = "xxxxxxxxx" # Create an instance of the REST client. aio = Client(ADAFRUIT_IO_USERNAME, ADAFRUIT_IO_KEY) # Set up Adafruit IO Feeds. temperature_feed = aio.feeds('temperature') humidity_feed = aio.feeds('humidity') # Set up DHT22 Sensor. dht22_sensor = Adafruit_DHT.DHT22 while True: humidity, temperature = Adafruit_DHT.read_retry(dht22_sensor, DHT_DATA_PIN) temperature = temperature * 9/5.0 + 32 if humidity is not None and temperature is not None: print('Temp={0:0.1f}*F Humidity={1:0.1f}%'.format(temperature, humidity)) # Send humidity and temperature feeds to Adafruit IO temperature = '%.2f'%(temperature) humidity = '%.2f'%(humidity) try: aio.send(temperature_feed.key, str(temperature)) aio.send(humidity_feed.key, str(humidity)) except ConnectionError as e: print(e) else: print('Failed to get DHT22 Reading, trying again in ', DHT_READ_TIMEOUT, 'seconds') # Timeout to avoid flooding Adafruit IO time.sleep(DHT_READ_TIMEOUT)
  • DHT22 skip incorrect values
    1 project | /r/influxdb | 17 Nov 2021
    A little like they are describing here: Incorrect readings · Issue #14 · adafruit/Adafruit_Python_DHT (github.com)
  • CHIP_IO vs Adafruit libraries
    1 project | /r/ChipCommunity | 16 Nov 2021
    When using the most basic example to talk to my DHT11, I can't figure out the proper pin to provide:
  • alpine container crashing with this error in CMD
    2 projects | /r/docker | 17 Oct 2021
    # BUILD IMAGE FROM arm32v6/python:2.7-alpine3.7 as builder RUN apk --no-cache add git build-base WORKDIR /home RUN git clone https://github.com/adafruit/Adafruit_Python_DHT.git && \ cd Adafruit_Python_DHT && \ python setup.py install COPY startup.sh startup.sh COPY home_iot home_iot RUN pip install influxdb==5.0.0 ## RUNTIME IMAGE FROM arm32v6/python:2.7-alpine3.7 RUN apk --no-cache add ca-certificates COPY --from=builder /usr/local/lib/python2.7 /usr/local/lib/python2.7 COPY --from=builder /home/home_iot /home/home_iot COPY --from=builder /home/startup.sh /home/startup.sh RUN chmod a+x /home/startup.sh WORKDIR /home #RUN echo '* * * * * python home_iot/check_indoor_weather.py' > /etc/crontabs/root CMD ['/usr/sbin/crond', '-l 2', '-f']
  • DHT22 temperature sensor on octopi
    1 project | /r/linuxquestions | 1 Jun 2021
    cd ~ git clone https://github.com/adafruit/Adafruit_Python_DHT.git cd Adafruit_Python_DHT sudo apt-get update sudo apt-get install build-essential python-dev python-openssl sudo python setup.py install
  • My raspberry pi cluster
    1 project | /r/homelab | 22 Mar 2021
    Here you go, https://chandlerhometemp.z22.web.core.windows.net/index.html. I modified the Adafruit_Python_DHT scripts a little bit to call my azure function API (just a HTTP POST call) instead of printing the data in console. Here's the (asp.net core) controller code https://github.com/chandde/misc/blob/master/HomeTempFunc/HomeTempFunc/Temperature.cs, same endpoint supports POST (for uploading) and GET (for the static web server to pull data from DB)
  • A note from our sponsor - InfluxDB
    www.influxdata.com | 10 May 2024
    Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality. Learn more →

Stats

Basic Adafruit_Python_DHT repo stats
7
1,022
0.0
over 4 years ago

adafruit/Adafruit_Python_DHT is an open source project licensed under MIT License which is an OSI approved license.

The primary programming language of Adafruit_Python_DHT is C.


Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com