mirror of
https://github.com/airgradienthq/arduino.git
synced 2025-07-29 16:37:17 +02:00
Removed unused files, changed example names
This commit is contained in:
16
examples/SHT_SIMPLE/SHT_SIMPLE.ino
Normal file
16
examples/SHT_SIMPLE/SHT_SIMPLE.ino
Normal 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_char);
|
||||
Serial.print(" Temperature: ");
|
||||
Serial.println(result.t_char);
|
||||
delay(5000);
|
||||
}
|
Reference in New Issue
Block a user