![]() ![]() Serial. We have kept the required code on GitHub with Fritzing diagram. ESP32 web server will display two things i.e. For this guide, you will need : Reading the above linked guides for setup and materials. For demonstration purpose, we are using a DHT11 sensor with the ESP32 module. Serial.println("Failed to read from DHT sensor!") Here is the Code and Diagram to Connect ESP32 Arduino with DHT11 with IBM Watson IoT and Get Odometer Like Gauges on Dashboard. #define DHTPIN 4 //pin D0 where the dht11 is connected String apiKey ="" // Enter your Write API key from ThingSpeakĬonst long CHANNEL= // Give your wifi network nameĬonst char* password = "" // Give your wifi network passwordĬonst char* server = " " I will attach the code here for dht11 with ESP32 to thingspeak The code works perfectly with the esp8266 and i am able to recieve the data with but when i try with the esp32, it doesnt work. I am having difficulty uploading the temp and humdity datas in the thingspeak. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |