EasyManua.ls Logo

Seeed Grove Beginner Kit - Page 51

Seeed Grove Beginner Kit
71 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Code Analysis
float temp, humi;
Defines variables to store readings.
temp = dht.readTemperature();
humi = dht.readHumidity();
Description:
Functions to be used to read temperature and humidity values from the sensor.
Syntax:
dht.readTemperature() and dht.readHumidity(). Return type: float.
Call these functions to read the temperature and humidity and store them in defined variables.
Demo Effect and Serial Print Result:
The surrounding temperature and humidity appear on the OLED screen.
Breakout Guide
Use Grove cable to connect the OLED to Seeeduino Lotus’s I2C interface (Note: I2C’s default
address is 0x78). Connect the Grove Temperature and Humidity Sensor to Seeeduino Lotus’s
digital signal interface D3.
50
Grove Beginner Kit For Arduino®

Other manuals for Seeed Grove Beginner Kit

Related product manuals