How to use temperature and humidity sensors on Raspberry Pi?

Q:

Hello Oscar,

I was thinking how to make a weather station, and for now to use temperature and humidity sensors on Raspberry Pi. Can you tell me how to use these sensors on the RPi?

Also I want it to be able to predict the fore coming weather. How would I do this? What would the resources I need be? I would want it to put the details on a small LCD panel attached to the RPI.

Thanks, and I would EXTREMELY appreciate your kind help.

R:

This temperature and humidity sensors for raspberry pi looks quite affordable and good to me! :-)

http://learn.adafruit.com/dht

This is a adafruit tutorial using these sensors

http://learn.adafruit.com/dht-humidity-sensing-on-raspberry-pi-with-gdocs-logging/overview

But for connection directly to the raspberry pi, you can check this image out. It is not the same sensor but all the pins are the same. here this should work. btw im sorry if it melted your sensor cause i melted mine. USE 3V3 not 5v!! If you do not want to use pin 4 you could use pins 17,18,21,22,23,24,25. just change the pin name in your code.

cfgdit.png

Leave a Reply

Your email address will not be published. Required fields are marked *

Are you Robot? *

I don't look at blog comments very often (maybe once or twice a week), so if you have any questions related to multirotor please post it on this forum IntoFPV.com... You're likely to get a response from me faster on there.