Close

[Trinket sensing] Grove temperature and humidity sensor pro

A project log for Home automation - Trinket Sensing

TJTJ 06/05/2015 at 07:360 Comments

Buy

http://www.seeedstudio.com/depot/grove-temperaturehumidity-sensor-pro-p-838.html

Wiki

http://www.seeedstudio.com/wiki/Grove_-_Temperature_and_Humidity_Sensor_Pro

C++ Library

https://github.com/Seeed-Studio/Grove_Temperature_And_Humidity_Sensor

Hardware

Vcc3.3 V
GndGnd
SigTrinket A0 (Analog 0)

Arduino code

#include "DHT.h"

#define DHTPIN      A0
#define DHTTYPE   DHT22

DHT tempAndHumi(DHTPIN, DHTTYPE);

void loop(void) {

}

void setup(void)  {
  float humiVal = tempAndHumi.readHumidity();
  float tempVal = tempAndHumi.readTemperature();
}

Discussions