Humidistat
Arduino firmware for a humidistat (humidity controller)
Loading...
Searching...
No Matches
SHTHumiditySensor.h
Go to the documentation of this file.
1#ifndef HUMIDISTAT_SHTHUMIDITYSENSOR_H
2#define HUMIDISTAT_SHTHUMIDITYSENSOR_H
3
4#include <math.h>
5#include <Wire.h>
6#include <SHTSensor.h>
7
10private:
11 SHTSensor &sht;
12
13 double t = NAN, h = NAN;
14public:
15 explicit SHTHumiditySensor(SHTSensor *sht);
16 double getHumidity() const;
17 double getTemperature() const;
18 void begin();
19 void readSample();
20};
21
22
23#endif //HUMIDISTAT_SHTHUMIDITYSENSOR_H
Implementation of the HumiditySensor interface for the Sensirion SHT85 sensor.
SHTHumiditySensor(SHTSensor *sht)
double getTemperature() const
double getHumidity() const