Not Getting Good Temperature Readings

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
JuRu_3481966
Level 1
Level 1
First like given

Hello,

I am working with the CY8KIT-142 PSoC BLE Module and an AM2302 Temperature/Humidity Sensor. I am having trouble reading in data from the sensor (I am reading out all 1s). I have attempted to adapt the Arduino library for this sensor, but have not been successful.  I am using the suggested 5.1 kOhm pull-up resistor and have the SDA pin set to bidirectional with the drive mode Open Drain Drives Low. Is there a way to change the direction of the pin (input/output) through code or is there a fault in my implementation? Attached are my project files and the AM2302 datasheet for reference.

Thank you!

-Julian

0 Likes
1 Solution
RyanZhao
Moderator
Moderator
Moderator
250 sign-ins First question asked 750 replies posted

Hi Julian,

You can refer this thread:

DHT22 sensor project or DHT11

Thanks,

Ryan

View solution in original post

1 Reply
RyanZhao
Moderator
Moderator
Moderator
250 sign-ins First question asked 750 replies posted

Hi Julian,

You can refer this thread:

DHT22 sensor project or DHT11

Thanks,

Ryan