Linked Questions

2 votes
2 answers
3k views

How can Rpi4B use python to talk to the I2C DHT20 / SHT20 temperature and humidity sensor?

I'm trying to use a Raspberry Pi 4 to read an I2C temperature and humidity sensor. The part I'm using is a module from Grove based on the DHT20 sensor. Here's a link to a page about the module: https:/...
thatguyfromcanada's user avatar
0 votes
2 answers
3k views

How to check if DHT11 sensor is working

I have RPI Zero with DHT11 connected as recommended (diagram) and I was reading data from it with ~90 % success rate every 5 minutes using the old Adafruit library. But today morning it stopped ...
FN_'s user avatar
  • 103
-1 votes
2 answers
4k views

DHT 11 sensor not found, check wiring

I am using raspberry pi 4 model b and sensor DHT 11 for checking the humidity and temperature. When I am using the code DHT.py, the result is: 1604263139.922 4 3 0.0 0.0 1604263142.192 4 3 0.0 0.0 ...
omid's user avatar
  • 99
0 votes
3 answers
2k views

Python script stops mysteriously after a few hours

The Problem I have a raspberry pi 3b+ running a python 3.7 script that is controlling an arduino. The arduino is reading values in from a few different sensors, and sending the data back to the python ...
Eric Webb's user avatar
  • 103
1 vote
1 answer
1k views

sudo python3 generates error but python3 does not

I don't understand why "sudo python3 temphumlogger2.py" triggers a module error, while "python3 temphumlogger2.py" executes no problem. Outputs below, and code below that. I want ...
mechoption's user avatar
1 vote
1 answer
1k views

Python import won't succeed when script is exec() from Apache PHP

I have a Python3 script (readtemp.py) to read temperature and humidity of a DHT22. I'm using adafruit_dht module. it executes perfectly from terminal command line with: python3 readtemp.py or ...
SailorBoy's user avatar
1 vote
2 answers
1k views

DHT 11 - Sensor with Raspberry Pi

OK, This is a little frustrating as I am JUST trying to get the temperature/Humidity readings on my DHT 11 sensor with Raspberry pi 4 and I am unable to do so. Please see below https://www....
Vikram Suriyanarayanan's user avatar
-1 votes
1 answer
1k views

Correct code to use DHT22 without a resistor?

In the comment of an existing answer that says a resistor is required, a person said that Pi's pins have in-built resistors ( https://raspberrypi.stackexchange.com/a/12162/121818 ), but it was just a ...
Damn Vegetables's user avatar
2 votes
0 answers
1k views

Unable to install Adafruit_DHT

Running the Adafruit install command sudo pip3 install Adafruit_DHT results in the following error: Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple Collecting Adafruit_DHT ...
Prmake's user avatar
  • 23
1 vote
1 answer
270 views

why doesn't the [dtoverlay=dht22,gpiopin=xx] way not work, when Python on pin 21 does?

Trying to get a DHT22 sensor to work on a Raspberry Pi ZERO WH running BUSTER. The demo Python program works on pin 21 (4 is in use by my DS18B20 sensors.) I tried the dtoverlay method, but I don't ...
Chris Wolcott's user avatar
2 votes
3 answers
184 views

Cannot SSH into periphery RPis from master RPi using python script automated from crontab: Host key verification failed

Project Overview I have a series of RPi 3B+ which collect T/RH data using connected sensors. These "periphery" units collect data every 5 minutes, append the data to a CSV file that holds a ...
Fruity Fritz's user avatar
-1 votes
2 answers
230 views

Can sensor DHT22 be powered externally, and only read by Pi Zero W?

I am querying the DHT22 for temperature and humidity data, hooked on a Raspberry Pi Zero WH. My current setup works, and is as shown in the first picture, courtesy of the tutorial from PiMyLifeUp. ...
straits's user avatar
0 votes
0 answers
193 views

AM2302 using without Adafruit Library

Hei, I am working on a project where I would like to use AM2302 for finding the humidity and temperature. I want to do this without using Adafruit libray, so i did some research and found that AM2302 ...
Julien's user avatar
  • 1
-1 votes
1 answer
90 views

How can I connect a dht11 that uses digital input while also using an ADC converter and the SPI bus

The source code I have below works for a two analog voltages(water level detection and temperature sensor). The code is set right now for just these two to run and it does work. If there is a problem ...
Nate's user avatar
  • 7
0 votes
0 answers
70 views

DHT22 RPi Zero W Accuracy not matching Arduino

I am trying to use my Raspberry Pi Zero W for an IoT project. I want to read the temperature of a room. I have the DHT22 sensor (the blue 3 pin one that has the resistors soldered onto the pcb). I ...
zealotben's user avatar

15 30 50 per page