Home/Support/Support Forum/How to read DHT22 through Xbee
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

How to read DHT22 through Xbee

0 votes
Hi everyone!
I want to receive the humidity and temperature from the remote Xbee(Router AT),but the packet i received is digital rather than analog.I connect the Router's AD1 which is changed to 2-ADC mode,I/O Sampling rate set 1385.The packets i got from AD1 are Decimal:1023 Hexadecimal:03FF or 00 00(0).How can i get the right data from remote router ?
asked Dec 7, 2016 in Digi TransPort Cellular by fxsh1301 New to the Community (1 point)
edited Dec 7, 2016 by fxsh1301

Please log in or register to answer this question.

1 Answer

0 votes
The analog signal needs to be between 0V and VREF which can be between VCC and 1.2V depending on which XBee you are using. The fact that you are getting 0x03FF indicates that you are exceeding VREF.
answered Dec 7, 2016 by mvut Veteran of the Digi Community (13,488 points)
Thanks for your reply.
The Vcc for Xbee and DHT22 are connect to Arduino's 3.3v.I use both of XBee S2 to trasmit the data. How should i fix this problem ?
The max voltage input for the analog pins on the XBee ZB or S2 modules is 1.2V. You are going to need to use a level shifter to get the voltage down to something the radio supports.
Hi fxsh1301,

I have the same problem. Did you get this resolved on your end?

If so, please share your setup to configure XBee S2 (Router AT) to transmit DHT22 data.

Appreciate your help.