Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4436

Beginners • DHT11 sensor with Raspberry Pi Pico

$
0
0
Hey, I am pretty fresh to Raspberry Pi Pico and microcontrollers in general. I'm trying to build a simple setup that measures temperature and humidity, displays it on an LCD display and also has a GSM module to send informative SMS in case temperature/humidity min/max marks are crossed. I am having trouble with getting my DHT11 to work, I keep getting error information stating "Expected 84 pulses got 1 instead". I am using a dht.py lib found here : https://www.instructables.com/DHT11-Wit ... y-Pi-Pico/ . All pins on the breadboard are properly connected as I made sure many times. I've also tried measuring just the temperature with an LM35 and it works just fine, as well as displays on LCD properly.
Things I've tried so far:
Using other GPIO pins for the sensor data.
Adding self.close() to the lib code before raising InvalidPulseCount
Naming the library dhtlib.py instead of dht.py
Using VBUS instead of 3v3 ( I am primarily using 3v3 )

Any help would be greatly appreciated.

Statistics: Posted by Dethress — Fri Jun 21, 2024 7:03 pm — Replies 2 — Views 49



Viewing all articles
Browse latest Browse all 4436

Trending Articles