Humidistat
Arduino firmware for a humidistat (humidity controller)
Loading...
Searching...
No Matches
SHTHumiditySensor.cpp
Go to the documentation of this file.
1#include "SHTHumiditySensor.h"
2
3SHTHumiditySensor::SHTHumiditySensor(SHTSensor *sht) : sht(*sht) {}
4
6 return h;
7}
8
10 return t;
11}
12
14 Wire.begin();
15 sht.init();
16}
17
19 sht.readSample();
20 t = sht.getTemperature();
21 h = sht.getHumidity();
22}
SHTHumiditySensor(SHTSensor *sht)
double getTemperature() const
double getHumidity() const