DHT sensor library
Classes | Macros
DHT.h File Reference
#include "Arduino.h"

Go to the source code of this file.

Classes

class  DHT
 Class that stores state and functions for DHT. More...
 
class  InterruptLock
 Class that defines Interrupt Lock Avaiability. More...
 

Macros

#define DEBUG_PRINTER   Serial
 
#define DEBUG_PRINT(...)   {}
 
#define DEBUG_PRINTLN(...)   {}
 
#define DHT11   11
 
#define DHT12   12
 
#define DHT22   22
 
#define DHT21   21
 
#define AM2301   21
 

Detailed Description

This is a library for DHT series of low cost temperature/humidity sensors.

You must have Adafruit Unified Sensor Library library installed to use this class.

Adafruit invests time and resources providing this open source code, please support Adafruit andopen-source hardware by purchasing products from Adafruit!

Written by Adafruit Industries.

MIT license, all text above must be included in any redistribution

Macro Definition Documentation

◆ DEBUG_PRINTER

#define DEBUG_PRINTER   Serial

Define where debug output will be printed. \

◆ DEBUG_PRINT

#define DEBUG_PRINT (   ...)    {}

Debug Print Placeholder if Debug is disabled

◆ DEBUG_PRINTLN

#define DEBUG_PRINTLN (   ...)    {}

Debug Print Line Placeholder if Debug is disabled

◆ DHT11

#define DHT11   11

DHT TYPE 11

◆ DHT12

#define DHT12   12

DHY TYPE 12

◆ DHT22

#define DHT22   22

DHT TYPE 22

◆ DHT21

#define DHT21   21

DHT TYPE 21

◆ AM2301

#define AM2301   21

AM2301