Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/matheusamazonas/dhtino
Arduino library for the DHT22 temperature and humidity sensor
https://github.com/matheusamazonas/dhtino
arduino arduino-library arduino-sensors dht22
Last synced: 2 days ago
JSON representation
Arduino library for the DHT22 temperature and humidity sensor
- Host: GitHub
- URL: https://github.com/matheusamazonas/dhtino
- Owner: matheusamazonas
- License: mit
- Created: 2018-07-15T10:11:43.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-09-10T16:44:37.000Z (over 6 years ago)
- Last Synced: 2024-12-17T06:46:30.592Z (6 days ago)
- Topics: arduino, arduino-library, arduino-sensors, dht22
- Language: C++
- Size: 27.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DHTino
Arduino library for the DHT22 temperature and humidity sensorLinux: : [![Build Status](https://travis-ci.com/matheusamazonas/DHTino.svg?branch=master)](https://travis-ci.com/matheusamazonas/DHTino)
Installation
-------------
For a simple, easy installation download the repository as a zip file and follow the instructions on [how to install an Arduino library from a zip file](https://www.arduino.cc/en/Guide/Libraries#toc4).Example
-------------
The example below is also in the `examples` folder.```cpp
#includeDHTino dht(4);
void setup()
{
Serial.begin(9600);
while (!Serial)
{
}
Serial.println("Setup is done");
}void loop()
{
delay(2000);
struct DHTinfo info = dht.getInfo();
Serial.print("Humidity: ");
Serial.println(info.humid);
Serial.print("Temperature: ");
Serial.println(info.temp);
}```