To round out the solution in case anyone else has the same issue that I did......
It turns out that I have a DHT11 temp/humidity sensor, not the DHT22.
The fix was to simply replace every occurrence of DHT22 with DHT11 in the code and it works a treat now.
cheers
Andrew
|