Skip to content

Latest commit

 

History

History
108 lines (69 loc) · 3.67 KB

README.md

File metadata and controls

108 lines (69 loc) · 3.67 KB

SimpleDHT-app - Temperature and humidity on the web!

alt text

Description

An app based on SimpleDHT library for the DHT series of low-cost temperature & humidity sensors.

You can find DHT11 and DHT22 tutorials here.

Hardware Components

  • DHT11 or DHT22 Sensor: Measures temperature and humidity.
  • ESP32: Microcontroller to read sensor data and host a webserver.
  • Breadboard and jumper wires: For circuit connections. (Or just solder everything)

Features

  • Temperature and Humidity Monitoring: Real-time temperature and humidity data from DHT11 to any device!
  • Documentation: Tons of descriptive comments and helpful information.
  • Customizable: You can change everything from how the app works and integrates with the sensor to how it looks on your devices.
  • Source files: Access to source HTML, JavaScript and Tailwind CSS files here.
  • API: Send data to anywhere in the world. (the route is /api)
  • MIT license: This app is open-source and uses one of the most permissive licenses so you can use it on any project.

Connections

Below, you can find the schematic and an example using DHT11 and ESP32-S2 mini:

schematicexample

Library Installation

First Method

image

  1. In the Arduino IDE, navigate to Sketch > Include Library > Manage Libraries
  2. Then the Library Manager will open and you will find a list of libraries that are already installed or ready for installation.
  3. Then search for SimpleDHT using the search bar.
  4. Click on the text area and then select the specific version and install it.

Second Method

  1. Navigate to the Releases page.
  2. Download the latest release.
  3. Extract the zip file
  4. In the Arduino IDE, navigate to Sketch > Include Library > Add .ZIP Library

Usage

Sep 1

Copy the SimpleDHT-app.ino file into your IDE.

Sep 2

Create a secrets.h file with the template below

const char *ssid = "<AP_SSID>";
const char *password = "<AP_PASSWORD>";

Remark: Replace <AP_SSID> and <AP_PASSWORD> with your access point credentials.

Sep 3

and a ci.json file as follows:

{
  "requires": [
    "CONFIG_SOC_WIFI_SUPPORTED=y"
  ]
}

Final step

Upload to your microcontroller! ▶️

Connect to the same network and access: http://esp32.local

Links

  1. adafruit/DHT-sensor-library
  2. Arduino #4469: Add SimpleDHT library.
  3. DHT11 datasheet and protocol.
  4. DHT22 datasheet and protocol.

Working with the source files

Install depencencies with and run

npm i
npm run dev

Credits

The author and maintainer of this app is DynoW [email protected].

Based on previous work of Winlin [email protected], the author of SimpleDHT library:

License

This app is licensed under MIT license.