Skip to content

Latest commit

 

History

History
39 lines (30 loc) · 859 Bytes

README.md

File metadata and controls

39 lines (30 loc) · 859 Bytes

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