Datasheet

6
3.2 With Raspberry Pi
1. You should have got a raspberry pi and a grovepi or grovepi+.
2. You should have completed configuring the development enviroment, otherwise follow here.
3. Connection
Plug grove DHT pro to the socket D4 of grovepi.
4.Navigate to the demos' directory:
cd yourpath/GrovePi/Software/Python/
To see the code
nano grove_dht_pro.py # "Ctrl+x" to exit #
import grovepi # Connect the Grove Temperature & Humidity Sensor Pro to digital port D4 # SIG,NC,VCC,GND
sensor = 4 while True: try: [temp,humidity] = grovepi.dht(sensor,1) print "temp
=", temp, " humidity =", humidity except IOError: print "Error"
5. Run the demo.