forked from airgradienthq/arduino
Removed unused files, changed example names
This commit is contained in:
1 parent
4f8bd0dbee
commit
89e1d35a49
5 files changed
No files matched your search
@@ -0,0 +1,16 @@
|
||||
#include <AirGradient.h>
|
||||
AirGradient ag = AirGradient();
|
||||
|
||||
void setup(){
|
||||
Serial.begin(9600);
|
||||
ag.TMP_RH_Init(0x44); //check for SHT sensor with address 0x44
|
||||
}
|
||||
|
||||
void loop(){
|
||||
TMP_RH result = ag.periodicFetchData();
|
||||
Serial.print("Humidity: ");
|
||||
Serial.print(result.rh_char);
|
||||
Serial.print(" Temperature: ");
|
||||
Serial.println(result.t_char);
|
||||
delay(5000);
|
||||
}
|
||||
Reference in new issue
Block a user