This commit is contained in:
Cristhian Macoh Musada
2020-07-24 21:52:28 +08:00
commit e052f62dd3
17 changed files with 1484 additions and 0 deletions

View File

@ -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);
Serial.print(" Temperature: ");
Serial.println(result.t);
delay(5000);
}