

zip folder and you should get ESPAsyncWebServer-master folder Click here to download the ESPAsyncWebServer library.
#Dfrobot xboard relay install#
Move the Adafruit_sensor folder to your Arduino IDE installation libraries folderįollow the next steps to install the ESPAsyncWebServer library:.Rename your folder from Adafruit_sensor-master to Adafruit_sensor.zip folder and you should get Adafruit_sensor-master folder Click here to download the Adafruit Unified Sensor library.Follow the next steps to install the library. You also need to install the Adafruit Unified Sensor Driver library to work with the DHT sensor. Installing the Adafruit Unified Sensor Driver Move the DHT_sensor folder to your Arduino IDE installation libraries folder.Rename your folder from DHT-sensor-library-master to DHT_sensor.zip folder and you should get DHT-sensor-library-master folder Click here to download the DHT Sensor library.To read from the DHT sensor using Arduino IDE, you need to install the DHT sensor library. ESPAsyncWebServer and Async TCP libraries to build the asynchronous web server.įollow the next instructions to install those libraries:.The DHT and the Adafruit Unified Sensor Driver libraries to read from the DHT sensor.You need to install a couple of libraries for this project: Additionally, many of these modules already come with an internal pull up resistor, so you don’t need to add one to the circuit.
#Dfrobot xboard relay how to#
The pins should be labeled so that you know how to wire them. Note: if you’re using a module with a DHT sensor, it normally comes with only three pins. (This schematic uses the ESP32 DEVKIT V1 module version with 36 GPIOs – if you’re using another model, please check the pinout for the board you’re using.) Take a look at the library documentation on its GitHub page.
#Dfrobot xboard relay update#
Update the sensor readings automatically without the need to refresh the web page.įor a more in-depth explanation on how to use the DHT22 and DHT11 temperature and humidity sensors with the ESP32, read our complete guide: ESP32 with DHT11/DHT22 Temperature and Humidity Sensor using Arduino IDE Watch the Video Tutorial.Build an asynchronous web server using the ESPAsyncWebServer library.How to read temperature and humidity from DHT sensors.The web server we’ll build updates the readings automatically without the need to refresh the web page.
