Plant Monitoring CS

Dependencies:   HTS221

DHT22.h

Committer:
titi9211
Date:
2020-03-25
Revision:
59:169324c8e604

File content as of revision 59:169324c8e604:

#ifndef MBED_DHT22_H
#define MBED_DHT22_H

#include "mbed.h"

class DHT22 {
private:
    int _temperature,_humidity;
    PinName _data_pin;
public:
    DHT22(PinName);
    bool sample();
    int getTemperature();
    int getHumidity();
};

#endif