4 years, 9 months ago.

DHT22 interface with Nucleo

/media/uploads/elbrillante/error2003.jpg

how to improve this :-) it's error 2003

Question relating to:

DTH22, RHT03 and DTH11 sensors can be read with this code! DTH11, DTH22, RHT03

1 Answer

4 years, 9 months ago.

Hello Nucleo! Most likely you need to adjust BITREADTIME in the header file. As I explain in the documentation this value is the wait time based on the original LP mbed device. So if you are on another device you need to adjust BITREADTIME on faster machines. The 2003 error simply means the final checksum from dth data read does not match the data interpreted checksum. Once you get the value that works it will work very well with no adjustments after that so each processor needs its own value is the issue here. Hope that gets you going. PKS

Accepted Answer