Skip to content

Fix CRITICAL: Add missing DHT22 sensor library dependencies to platformio.ini #21

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ pio lib install "adafruit/DHT sensor library@^1.4.4"

* [ArduinoJson](https://github.com/bblanchon/ArduinoJson)
* [SoftwareSerial](https://www.arduino.cc/en/Reference.SoftwareSerial)
* [DHT sensor library](https://github.com/adafruit/DHT-sensor-library) - For DHT22 temperature/humidity sensor

Cloud Infrastructure
=====
Expand Down
4 changes: 3 additions & 1 deletion platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ default_envs = uno, esp32
; Arduino Uno Environment - Phase 1: Embedded ML
; ============================================================================
[env:uno]

platform = atmelavr
board = uno
framework = arduino
Expand All @@ -27,6 +28,7 @@ build_src_filter = +<*> -<main_legacy.cpp>
lib_deps =
bblanchon/ArduinoJson@^6.21.2
adafruit/DHT sensor library@^1.4.4
adafruit/Adafruit Unified Sensor@^1.1.14

; Monitor settings
monitor_speed = 9600
Expand Down Expand Up @@ -99,4 +101,4 @@ platform = espressif32
board = esp32dev
framework = arduino
test_filter = test_esp32
lib_deps = ${env:esp32.lib_deps}
lib_deps = ${env:esp32.lib_deps}