Skip to content

Commit

Permalink
Small refactoring + added circuit diagram
Browse files Browse the repository at this point in the history
  • Loading branch information
pkoscielny committed Mar 16, 2021
1 parent c633928 commit 99226d1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@ The measured parameters are sent to the ZeroIoT server once per minute.
### List of components
* ESP8266 WeMos D1 mini board
* DHT21 temperature and humidity sensor (AM2301)

### Breadboard circuit diagram
![circuit](/img/air_state_sensor.png)
5 changes: 3 additions & 2 deletions air_state.ino
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,15 @@
#include <ESP8266HTTPClient.h>
#include <DHT.h>

// WiFi settings.
const char* ssid = "****";
const char* passwd = "****";
String iot_server_url = "http://your_zeroiot_server_address:3000/air_state"; // zeroiot
String device_id = "esp8266_wemos_2";
String location = "kitchen";

#define DHTTYPE DHT21
DHT dht(D2, DHTTYPE);
// Sensor settings.
DHT dht(D2, DHT21);

// For proper working section for avoiding data contamination
// I need remember previous measurement results.
Expand Down
Binary file added img/air_state_sensor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 99226d1

Please sign in to comment.