Ecoduino Temperature/Humidity Sensor

Hi,
I recently received an Ecoduino system as a gift and am setting it up. I was able to successfully set up the build environment and read out data from the soil moisture sensor; however, I can't get data from the temperature/humidity sensor (DHT). I have it plugged into the D9 plugs on the arduino board.
The default software on the website gave the error "read failed". I added some debugging code and determined that it is consistently receiving a value of 0 when the DHT sensor is attached and 1 when it is not. However, the code for reading a temperature & humidity value does not work; when DHT::read is run, it times out when the counter hits 255, because the value being read in is consistently 1, without any change (or transition).
I've verified that the wires all have good clean connections. I'm not sure if the problem is with the sensor or with the code- any assistance would be greatly appreciated.
Thanks,
Lauren
I recently received an Ecoduino system as a gift and am setting it up. I was able to successfully set up the build environment and read out data from the soil moisture sensor; however, I can't get data from the temperature/humidity sensor (DHT). I have it plugged into the D9 plugs on the arduino board.
The default software on the website gave the error "read failed". I added some debugging code and determined that it is consistently receiving a value of 0 when the DHT sensor is attached and 1 when it is not. However, the code for reading a temperature & humidity value does not work; when DHT::read is run, it times out when the counter hits 255, because the value being read in is consistently 1, without any change (or transition).
I've verified that the wires all have good clean connections. I'm not sure if the problem is with the sensor or with the code- any assistance would be greatly appreciated.
Thanks,
Lauren
2017-01-09 23:52:41 Hi
Please refer to the following link to test the DHT11 alone to make sure if the sensor is a good one:make_clickable_callback(MAGIC_URL_FULL, '
', 'https://www.dfrobot.com/wiki/index.php/DHT11_Temperature_and_Humidity_Sensor_(SKU:_DFR0067', '', ' class="postlink"'))
If the sensor is good, I guess maybe you can try to use other digital pin to try again.
Contact us if you have any problem.
Wendy.Hu
Please refer to the following link to test the DHT11 alone to make sure if the sensor is a good one:make_clickable_callback(MAGIC_URL_FULL, '
', 'https://www.dfrobot.com/wiki/index.php/DHT11_Temperature_and_Humidity_Sensor_(SKU:_DFR0067', '', ' class="postlink"'))
If the sensor is good, I guess maybe you can try to use other digital pin to try again.
Contact us if you have any problem.

