Skip to content

Arduino library for the DHT22 temperature and humidity sensor

License

Notifications You must be signed in to change notification settings

matheusamazonas/DHTino

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DHTino

Arduino library for the DHT22 temperature and humidity sensor

Linux: : Build Status

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.

Example

The example below is also in the examples folder.

#include <DHTino.h>

DHTino 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);
}

About

Arduino library for the DHT22 temperature and humidity sensor

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published