thakshak / AM2320

aosong am2320 i2c temperature and humidity sensor
MIT License
11 stars 16 forks source link

A delay is needed after wake() #7

Closed maxim-devpronet closed 5 years ago

maxim-devpronet commented 7 years ago

Hi, I have tried your library (thank you for getting it shared) but it said that the device is offline. After some debugging I found out that a delay of 15 milliseconds (I put 20) is required right after the wake() function. It seems that spec says that as well. But I see that you put the delay after sending the request to read registers. Maybe the delay there is also required. I did not remove it.

My sensor was bought on AliExpress and is named as AM2320.

Hope that helps.