nilwes / DHT11

Toit driver for the DHT11 temperature and humidity sensor.
MIT License
0 stars 1 forks source link

Can't get sensor data from DHT11 --> always "Error reading sensor" #1

Open KSchreyer opened 2 years ago

KSchreyer commented 2 years ago

Hi, I'm currently trying out Toit and wanted to log some environmental data. Unfortunately, I'm not getting any values out of a DHT11 with the example and DHT11.toit code of this repository. I'm only getting "Error reading sensor".

Could you please explain how you wired up the DHT11 and ESP32, to retrieve data with your example code and the DHT11 library?

My current wiring looks like:

I've adapted your example code to use GPIO 22 and 23, instead of GPIO 12 and 13. Using 5V instead of 3.3V didn't worked either.

Thanks in advance for your support. Kai

nilwes commented 2 years ago

Hi Kai, Sorry to hear about your issues. First of all, if you are using this DHT11 you do not need any 10 kOhm resistor. It is built into the PCB. Also, have you tried using GPIO12 and 13 also without any success?