more G-Labs products

Author Topic: DHT-22 Sensor  (Read 1040 times)

September 14, 2015, 10:47:13 PM
Read 1040 times

Michel

  • **
  • Information
  • Jr. Member
  • Posts: 42
I have connected a DHT-22 sensor to my RPi and readings are ok with program 63. The only problem is that the program refreshes the data every 3 to 10 seconds  even if the interval delay is set at 600 seconds.

Any idea ?

Thanks

September 15, 2015, 05:10:32 AM
Reply #1

dani

  • *****
  • Information
  • Global Moderator
  • Posts: 535
I votre same issue. You must correct the program. Take of thé line with "break;".
But after tell me if sometime you don't get wrong value, in that case I will post a new hgx file for you

Chees
Dani

September 15, 2015, 01:12:40 PM
Reply #2

Michel

  • **
  • Information
  • Jr. Member
  • Posts: 42
Thanks Dani, the refresh interval is ok now. But, as you suspected, sometimes the humidity shows 3303.4%.


September 15, 2015, 02:52:45 PM
Reply #3

dani

  • *****
  • Information
  • Global Moderator
  • Posts: 535
Here is a source code that care of some wrong values.
If you import that program it will create a new ID. So you stop program ID 63 and use the new one.

Cheers
Dani

September 15, 2015, 09:06:01 PM
Reply #4

Michel

  • **
  • Information
  • Jr. Member
  • Posts: 42
Hi Dani, I installed your program and everything works perfectly now.

Thanks for your help.

Michel