Serial. We have kept the required code on GitHub with Fritzing diagram. For this guide, you will need : Reading the above linked guides for setup and materials. If (nnect(server,80)) // "184.106.153.149" or Ĭlient.print("Host: \n") Ĭlient.print("X-THINGSPEAKAPIKEY: " apiKey "\n") Ĭlient.print("Content-Type: application/x-www-form-urlencoded\n") Here is the Code and Diagram to Connect ESP32 Arduino with DHT11 with IBM Watson IoT and Get Odometer Like Gauges on Dashboard. Serial.println("Failed to read from DHT sensor!") #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. Archives
May 2023
Categories |