Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
7 years, 11 months ago.
DHT 22 is error
i want to read data from DHT 22 sensor, i use this code https://developer.mbed.org/users/Wimpie/code/DHT_TestProgram/ but the output is error.. display in termite is Err 2..
i use nucleo L152RE any one can help this problem?? please...
1 Answer
7 years, 11 months ago.
Hi Susanto,
Thanks for your question :)
What value of pull up resistor are you using, id recommend 4.7K to 10k. Have you connected everything correctly.
Have you tried this in a simple program?
Have you tried a different library? such as found here, this should also show you how to connect your device:
https://developer.mbed.org/cookbook/Grove-temperature--humidity-sensors
Regards,
Andrea, team mbed
thank you andrea for your answer.. i tried to using pull up resistor 4.7k and connected everything correctly, and i tried to using that code https://developer.mbed.org/cookbook/Grove-temperature--humidity-sensors but the output is error "Err 2"
posted by 17 Jan 2017