Search found 1 match

by Bigdog1981
Fri Oct 25, 2013 12:20 pm
Forum: Sensors
Topic: DHT11 Digital Temperature & Humidity Module (HCARDU0020)
Replies: 2
Views: 11792

Re: DHT11 Digital Temperature & Humidity Module (HCARDU0020)

Hi, this is only my second project and im having trouble. Basically im trying to control a relay using the code above by adding an "if" statement like this to the end of the code. if (Temperature < 20) { digitalWrite ( relay,HIGH); } if (Temperature > 24) { digitalWrite (relay, LOW); delay (500); } ...

Go to advanced search