Go to advanced search

by RhysJ
Mon Oct 22, 2018 11:50 am
Forum: Automation, sensing and robotics
Topic: Yet more DHT22 sensor code
Replies: 101
Views: 83007

Re: Yet more DHT22 sensor code

Thanks Dan, I followed your advice of taking the sensor setup outside of the loop and added the timer code you specified. It's been 5 days and the sensor hasn't crashed once! It appears that I don't need to set the GPIO for the power first, so i removed this from the code. I also followed the pin nu...
by RhysJ
Mon Oct 15, 2018 5:22 pm
Forum: Automation, sensing and robotics
Topic: Yet more DHT22 sensor code
Replies: 101
Views: 83007

Re: Yet more DHT22 sensor code

Hi there, I've been reading through this thread as i'm having trouble with my DHT22 sensor hanging. I'm trying to save a timestamp, temperature and humidity to a file every 30 seconds but after some random time the sensor will start spitting out -999 for each data point. I've stated what pins i'm us...

Go to advanced search