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
9
class
SHTHumiditySensor
{
10
private
:
11
SHTSensor &
sht
;
12
13
double
t
= NAN,
h
= NAN;
14
public
:
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
SHTHumiditySensor
Implementation of the HumiditySensor interface for the Sensirion SHT85 sensor.
Definition
SHTHumiditySensor.h:9
SHTHumiditySensor::SHTHumiditySensor
SHTHumiditySensor(SHTSensor *sht)
Definition
SHTHumiditySensor.cpp:3
SHTHumiditySensor::h
double h
Definition
SHTHumiditySensor.h:13
SHTHumiditySensor::t
double t
Definition
SHTHumiditySensor.h:13
SHTHumiditySensor::getTemperature
double getTemperature() const
Definition
SHTHumiditySensor.cpp:9
SHTHumiditySensor::getHumidity
double getHumidity() const
Definition
SHTHumiditySensor.cpp:5
SHTHumiditySensor::sht
SHTSensor & sht
Definition
SHTHumiditySensor.h:11
SHTHumiditySensor::readSample
void readSample()
Definition
SHTHumiditySensor.cpp:18
SHTHumiditySensor::begin
void begin()
Definition
SHTHumiditySensor.cpp:13
src
sensor
SHTHumiditySensor.h
Generated by
1.12.0