Skip to content

Commit 330fcca

Browse files
mvdwwinkj
authored andcommitted
Without sht.init(), it won't work.
1 parent 50c590f commit 330fcca

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ necessary:
3333
Import Library > arduino-sht
3434
1. Create an instance of the `SHTSensor` class (`SHTSensor sht;`)
3535
2. In `setup()`, make sure to init the Wire library with `Wire.begin()`
36-
3. If you want to use the serial console, remember to initialize the Serial
36+
3. Also in `setup()`, call `sht.init()`
37+
5. If you want to use the serial console, remember to initialize the Serial
3738
library with `Serial.begin(9600)`
3839
1. Call `sht.readSample()` in the `loop()` function, which reads a temperature
3940
and humidity sample from the sensor

0 commit comments

Comments
 (0)