I’ve got the ESP8266 hooked up to my computer with a micro usb.
The pins are connected like this:
The 5V pin from the ESP is connected to a breadboard. From there it further connects to the Sensor (middle pin). It also connects a 10k resistor with the datapin from the sensor as well as a connection back to the ESP. Last but not least, the GND from the ESP is hooked up with the GND from the sensor as well.
I’ve been following this tutorial here: Tutorial (I used the examples on the github page and adjusted them to fit for my sensor instead)
Here is the code that is currently running on my ESP:
And attached is a screenshot of the exact output I’m getting
The problem I’m currently encountering is apparently a Time out error. Everytime the ESP checks the sensors humidity, it’s return value is always -999. Everything else appears to be working just fine (the website, graph, etc)
I’ve searched far and wide but couldn’t really find an answer to the problem. Hopefully someone on here can enlight me?
What I’ve tried so far:
- Used an Arduino Uno - return values were fine
- Tried different libraries (first worked with DHT-sensory-library, currently trying with DHTstable)
- Different Pin-layouts
Thank you and have a nice day!