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.
8 years, 2 months ago.
Testing DHT22 sensor with NUCLEO F401RE board using mbed OS 5
I want to test the DHT22 Temperature and Humidity sensor with my NUCLEO F401RE board (direct connection without a pullup resistor) I imported this code https://developer.mbed.org/teams/Skovbrynet/code/DHT22tester/ using "mbed import https://developer.mbed.org/teams/Skovbrynet/code/DHT22tester/" after adjusting the data and Error pins to my board (DigitalOut Error(PA_10); DHT dht22(PB_10,DHT22); ) I was able to compile it without errors. But when I used the minicom as a serial console I couldn`t get any reading for the temperature or Humidity as shown in the picture:
why no results coming out from dht22.ReadTemperature(CELCIUS) and dht22.ReadHumidity() Can anyone help me with this?
Thanks in advance,
Maria