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
®
Содержание Grove Beginner Kit
Страница 1: ...Grove Beginner Kit For Arduino User Manual ...
Страница 63: ...62 Grove Beginner Kit For Arduino ...