0

First of all I am kind of a noob working with microcontrollers, by the way I am using Arduino IDE 1.8.13

I fallowed the hookup guide to set up Arduino IDE to work with Sparkfun ESP 32 Thing board, and actually I was able to run the Arduino examples "Blink" and "Wifi" with no problem.

But my problem is when I tried to use the DHT11 sensor, I did fallowed several tutorials like this one but for my bad fortune I did not succeed, instead I was getting NaN reading from the temperature and humidity sensor, at first I thought it might had something to do with the libraries version, which I installed and uninstalled several times, including the IDE, then using those same libraries I was able to do the exact same example on an Arduino Uno microcontroller.

Then I realized I did not find any example, tutorial or document using the Sparkfun ESP32 Thing with the DHT11 sensor, since most of the examples that I found are for the generic ESP32.

Which makes me wonder, how can I know if those two components are compatible at all?

Does any one has faced something similar using ESP32 Thing with DHT11 or any another sensor?, if yes, how did you make it work or what did you do instead?

Nimantha
  • 6,405
  • 6
  • 28
  • 69
luis_laurent
  • 784
  • 1
  • 12
  • 32
  • 1
    This looks like a question for [arduino.se] – Tangentially Perpendicular Apr 04 '21 at 10:07
  • Sensors (not only DHT11) are designed to be used by all kind of MCUs. You should focus on why you are getting an NaN than whether the sensor is compatible with a MCU. – hcheung Apr 05 '21 at 01:05
  • I have come to the conclusion that it might be library issue which might not work with the sparkfun board , the one I tried is "DHT Sensor Library by Adafruit" which has a dependecy on "Adafruit Unified Sensor" but not 100% sure yet... – luis_laurent Apr 05 '21 at 01:16
  • Adafruit's libraries usually work with ESP32 boards. You probably have it wired incorrectly or are using the library incorrectly. If you'd care to edit your question to share details of exactly how it's wired and a minimal viable example of code that demonstrates the problem, someone might be able to help. – romkey Apr 05 '21 at 04:32
  • I did like the tutorial I followed from the link above for esp32, I am using the DHT11 with 3 pins version, ok let me upstate with more details – luis_laurent Apr 05 '21 at 04:34

0 Answers0