Step 1. Add the JitPack repository to your build file
Add it in your root settings.gradle at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
Add it in your settings.gradle.kts at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url = uri("https://jitpack.io") }
}
}
Add to pom.xml
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
Add it in your build.sbt at the end of resolvers:
resolvers += "jitpack" at "https://jitpack.io"
Add it in your project.clj at the end of repositories:
:repositories [["jitpack" "https://jitpack.io"]]
Step 2. Add the dependency
dependencies {
implementation 'com.github.adafruit:DHT-sensor-library:'
}
dependencies {
implementation("com.github.adafruit:DHT-sensor-library:")
}
<dependency>
<groupId>com.github.adafruit</groupId>
<artifactId>DHT-sensor-library</artifactId>
<version></version>
</dependency>
libraryDependencies += "com.github.adafruit" % "DHT-sensor-library" % ""
:dependencies [[com.github.adafruit/DHT-sensor-library ""]]
An Arduino library for the DHT series of low-cost temperature/humidity sensors.
You can find DHT tutorials here.
Contributions are welcome! Not only you’ll encourage the development of the library, but you’ll also learn how to best use the library and probably some C++ too
Please read our Code of Conduct before contributing to help this project stay welcoming.
Documentation is produced by doxygen. Contributions should include documentation for any new code added.
Some examples of how to use doxygen can be found in these guide pages:
https://learn.adafruit.com/the-well-automated-arduino-library/doxygen
https://learn.adafruit.com/the-well-automated-arduino-library/doxygen-tips
Written by Adafruit Industries based on work by:
MIT license, check license.txt for more information All text above must be included in any redistribution
To install, use the Arduino Library Manager and search for "DHT sensor library" and install the library.