}
void loop()
{
float temper = TH02.ReadTemperature();
Serial.println("Temperature: ");
Serial.print(temper);
Serial.println("C\r\n");
float humidity = TH02.ReadHumidity();
Serial.println("Humidity: ");
Serial.print(humidity);
Serial.println("%\r\n");
delay(1000);
}
Note:
Upload it into your Arduino board and open the serial monitor to observe the temperature and
relative humidity information of the environment
6
Need help?
Do you have a question about the Grove - Temperature&Humidity Sensor and is the answer not in the manual?