Skip to content

Commit 39600c1

Browse files
authored
DHTPIN typo
DHT_PIN -> DHTPIN DHTPIN: D7 -> D3
1 parent bfe9dbf commit 39600c1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

examples/Temp_and_Humidity/Temp_and_Humidity.ino

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
1+
//#define DHTPIN 3 // By default its connected to pin D3, it can be changed, define it before the #include of the library
12
#include "Arduino_SensorKit.h"
23

34
SensorKit kit;
45

5-
#define DHT_PIN 7
6-
76
void setup() {
87
Serial.begin(9600);
98
kit.begin();
109
}
1110

1211
void loop() {
13-
1412
Serial.print("Temperature = ");
1513
Serial.print(Environment.readTemperature()); //print temperature
1614
Serial.println(" C");

0 commit comments

Comments
 (0)