Wednesday, April 8, 2009

Using the Humidity and Temperature Sensor

The sensor is part number HUMTEMPSENS from www.futurlec.com. The datasheet lists the part number as hht02d and provides a good pinout diagram. At first glance the interface is not very simple and I could not find any arduino code for it.

Lukily it uses the same interface as the popular SHTXX sensors. This example provides code that works well and spits out the humidity and temperture to the serial port after you send it 'h' or 't'. Quick hint: the arduino IDE provides a serial monitor so you don't have to mess around with Hyperterminal. It is the far right button next to the 'upload to I/O board' button.

The sensor doesnt appear to be the most accurate, it claims pki 340 was 79 degrees.

2 comments:

SirAble said...

Howdy,
I have searched, but not figured out what PKI 340 is. So, I don't know how inaccurate 79 degrees would be. Can you clarify this?
This futurlec part is about one third the price of the one from sparkfun. But, if the accuracy is bad enough, it would be no deal.
Thanks,
Ralph

john miller said...

PKI 340 is a classroom that should have been in the low 70s. Other students have told me that the sensor stabilizes after operating for a while and is more accurate. I have no idea how long a while is or to what degree it is accurate.