<?xml-stylesheet type="text/xsl" href="https://community.element14.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>DHT22 temperature and Humidity Sensor with Arduino Uno and Ethernet Card (ENC or WizNet) (Instant weather Station)</title><link>/products/arduino/b/blog/posts/dht22-temperature-and-humidity-sensor-with-arduino-uno-and-ethernet-card-enc-or-wiznet-instant-weather-station</link><description>This is a quick post to show how easy it is to connect a DHT22 temp and Humidity sensor to an Arduino and have it output its reading on a web page that can easily be accessible from anywhere on the internetWith a little more work you can pretty up th</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: DHT22 temperature and Humidity Sensor with Arduino Uno and Ethernet Card (ENC or WizNet) (Instant weather Station)</title><link>https://community.element14.com/products/arduino/b/blog/posts/dht22-temperature-and-humidity-sensor-with-arduino-uno-and-ethernet-card-enc-or-wiznet-instant-weather-station</link><pubDate>Tue, 20 Oct 2015 11:50:18 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:a0f1f902-b83e-4a2c-be3e-16dea3a0e63d</guid><dc:creator>Former Member</dc:creator><slash:comments>2</slash:comments><description>&lt;p&gt;Two part question: How does one configure for Fahrenheit printout and how&lt;/p&gt;&lt;p&gt;does one add a second DHT11 to the sketch? At the moment I have the&lt;/p&gt;&lt;p&gt;sketch configured for one DHT11.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thank you for the tutorial, it worked on the first go. &lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=17467&amp;AppID=145&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: DHT22 temperature and Humidity Sensor with Arduino Uno and Ethernet Card (ENC or WizNet) (Instant weather Station)</title><link>https://community.element14.com/products/arduino/b/blog/posts/dht22-temperature-and-humidity-sensor-with-arduino-uno-and-ethernet-card-enc-or-wiznet-instant-weather-station</link><pubDate>Sat, 29 Nov 2014 03:14:48 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:a0f1f902-b83e-4a2c-be3e-16dea3a0e63d</guid><dc:creator>Former Member</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;I will do that.&amp;nbsp; Thanks for the code and the help it was appreciated.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=17467&amp;AppID=145&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: DHT22 temperature and Humidity Sensor with Arduino Uno and Ethernet Card (ENC or WizNet) (Instant weather Station)</title><link>https://community.element14.com/products/arduino/b/blog/posts/dht22-temperature-and-humidity-sensor-with-arduino-uno-and-ethernet-card-enc-or-wiznet-instant-weather-station</link><pubDate>Fri, 28 Nov 2014 19:45:37 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:a0f1f902-b83e-4a2c-be3e-16dea3a0e63d</guid><dc:creator>Former Member</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;I look forward to your comments.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=17467&amp;AppID=145&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: DHT22 temperature and Humidity Sensor with Arduino Uno and Ethernet Card (ENC or WizNet) (Instant weather Station)</title><link>https://community.element14.com/products/arduino/b/blog/posts/dht22-temperature-and-humidity-sensor-with-arduino-uno-and-ethernet-card-enc-or-wiznet-instant-weather-station</link><pubDate>Fri, 28 Nov 2014 18:36:53 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:a0f1f902-b83e-4a2c-be3e-16dea3a0e63d</guid><dc:creator>Former Member</dc:creator><slash:comments>2</slash:comments><description>&lt;p&gt;With the help of the people of Arduino forums I&amp;#39;ve got this project working for my setup.&amp;nbsp; faintfuzzies.ca:8080&amp;nbsp; I&amp;#39;ll keep it up and available until tomorrow.&amp;nbsp; The code is here it is still not perfect as I can&amp;#39;t get it to run more than 30 minutes before it start spewing garbage and then crapping out.:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;[embed:dc8ab71f-3b98-42d9-b0f6-e21e02a0f8e2:3ef06e6b-9b7d-4651-b12d-db8be7f5e991:type=c_cpp&amp;amp;text=%23include+%3CSPI.h%3E+%0A%23include+%3CWire.h%3E%0A%23include+%3CEthernet.h%3E%0A%2F%2F%23include+%3CUIPEthernet.h%3E%0A%23include+%3CDHT.h%3E%0A%23include+%3Cstdio.h%3E%0A%0A%0A%23define+DHTTYPE+DHT22%0A%23define+DHTPIN+2%0A%0A%0ADHT+dht%28DHTPIN%2C+DHT22%29%3B%0A%0A%0Afloat+combined_temp_C%3B%0Afloat+combined_temp_F%3B++%2F%2Fcreate+a+new+variable%0Abyte+TempHi%3B++++++++++++++%2F%2F+Variable+hold+data+high+byte%0Abyte+TempLo%3B++++++++++++++%2F%2F+Variable+hold+data+low+byte%0Aboolean+P_N%3B++++++++++++++%2F%2F+Bit+flag+for+Positive+and+Negative%0Aboolean+P_N112%3B%0Aboolean+P_N212%3B%0Aunsigned+int+Decimal%3B+++++%2F%2F+Variable+hold+decimal+value%0Achar+*+strTempC+%3D+NULL%3B%0Achar+*+strTempF+%3D+NULL%3B%0Abyte+mac%5B%5D+%3D+%7B%0A++0x90%2C+0xA2%2C+0xDA%2C+0x00%2C+0x4E%2C+0x10+%7D%3B++%2F%2F+MAC+address+84.85.88.16.0.36%0Abyte+ip%5B%5D++%3D+%7B%0A++192%2C+168%2C+1%2C+20+%7D%3B+++++++++++++++++++++%2F%2F+ip-address%2C+please+change+to+fit+your+network%0Abyte+mydns%5B%5D+%3D+%7B%0A++192%2C+168%2C+1%2C+1+%7D%3B+++++++++++%0Abyte+gateway%5B%5D+%3D+%7B%0A++192%2C+168%2C+1%2C+1+%7D%3B++++++++++++%0Abyte+subnet%5B%5D+%3D+%7B%0A++255%2C255%2C255%2C0+%7D%3B%0AEthernetServer+server%288080%29%3B%0Astatic+char+output%5B300%5D+%3D+%22%22%3B%0A%0A%0Achar+headerHTML%5B%5D+%3D+%22HTTP%2F1.1+200+OK%5Cr%5Cn%22%0A%22Content-Type%3A+text%2Fhtml%5Cr%5Cn%22%0A%22Connection%3A+close%5Cr%5Cn%22%0A%22Refresh%3A+5%5Cr%5Cn%22%0A%22%5Cr%5Cn%22%0A%22%3C%21DOCTYPE+HTML%3E%22%0A%22%3CTitle%3EOffice+Enviroment+Server%3C%2FTitle%3E%22%0A%22%3Chtml%3E%22%3B%0A%0A%0Achar+footerHTML%5B%5D+%3D+%22%3C%2Fhtml%3E%22+%3B%0A%0A%0Avoid+setup%28%29%0A%7B%0A++Serial.begin%289600%29%3B%0A++%2F%2Fethernet%0A++Ethernet.begin%28mac%2C+ip%29%3B%0A++server.begin%28%29%3B%0A++Serial.print%28%22server+is+at+%22%29%3B%0A++Serial.println%28Ethernet.localIP%28%29%29%3B%0A%7D%0A%0A%0Achar+*+TimeElapsed%28%29%0A%7B+%2F%2F+Was+Home+Page%0A++long+t+%3D+millis%28%29+%2F+1000%3B%0A++word+h+%3D+t+%2F+3600%3B%0A++byte+m+%3D+%28t+%2F+60%29+%25+60%3B%0A++byte+s+%3D+t+%25+60%3B%0A++sprintf%28output%2C+%22%3Ch1%3E%25d%25d%3A%25d%25d%3A%25d%25d%3C%2Fh1%3E%22+%2C+h%2F10%2C+h%2510%2C+m%2F10%2C+m%2510%2C+s%2F10%2C+s%2510%29%3B%0A++return+output%3B%0A%7D%0A%0A%0Avoid+sendTempToNetwork%28EthernetClient+myClient%29%0A%7B%0A++%2F%2F+now+humidity+%2F+temp+sensor%0A++%2F%2F+int+chk+%3D+DHT.read22%28DHTPIN%29%3B%0A++myClient.print%28%22Humidity%3D%22%29%3B%0A++myClient.print%28dht.readHumidity%28%29%2C+0%29%3B%0A++myClient.print%28%22%25%22%29%3B%0A++myClient.print%28%22%3CBR%2F%3E%22%29%3B%0A++myClient.print%28%22Temperature%3D%22%29%3B%0A++myClient.print%28dht.readTemperature%28%29%2C+0%29%3B%0A++myClient.write%28%22+%22%29%3B%0A++myClient.print%28%22C%22%29%3B%0A++myClient.print%28%22%3CBR%2F%3E%22%29%3B%0A++myClient.print%28%22Dewpoint%3D%22%29%3B%0A++myClient.print%28dewPoint%28dht.readTemperature%28%29%2C+dht.readHumidity%28%29+%29%2C+0%29%3B%0A++myClient.write%28%22+%22%29%3B%0A++myClient.print%28%22C%22%29%3B%0A++myClient.print%28%22%3CBR%2F%3E%3CBR%2F%3E%22%29%3B%0A%7D%0Avoid+sendAnalogToNetwork%28EthernetClient+myClient%29%0A%7B%0A++%2F%2F+output+the+value+of+each+analog+input+pin+for+good+measure%0A++for+%28int+analogChannel+%3D+0%3B+analogChannel+%3C+6%3B+analogChannel%2B%2B%29+%7B%0A++++int+sensorReading+%3D+analogRead%28analogChannel%29%3B%0A++++myClient.print%28%22analog+input+%22%29%3B%0A++++myClient.print%28analogChannel%29%3B%0A++++myClient.print%28%22+is+%22%29%3B%0A++++myClient.print%28sensorReading%29%3B%0A++++myClient.println%28%22%3Cbr+%2F%3E%22%29%3B++++++%0A++%7D%0A%7D%0A%2F*******************************************************************************%0A*+Main+Loop%0A*******************************************************************************%2F%0Avoid+loop%28%29%0A%7B%0A++%2F%2F+listen+for+incoming+clients%0A++EthernetClient+client+%3D+server.available%28%29%3B%0A++if+%28client%29%0A++%7B%0A++++Serial.println%28%22new+client%22%29%3B%0A%0A%0A++++%2F%2F+send+a+standard+http+response+header%0A++++client.print%28headerHTML%29%3B%0A++++%2F%2F+now+send+the+stuff+we+want%0A++++client.print%28TimeElapsed%28%29%29%3B+%2F%2F+your+old+code+here%0A++++%2F%2F+do+some+more+stuff%0A++++sendTempToNetwork%28client%29%3B%0A++++sendAnalogToNetwork%28client%29%3B%0A++++%2F%2F+were+done+sending+so+now+send+the+footer+to+close+the+page%0A++++client.println%28footerHTML%29%3B%0A%0A%0A++++%2F%2F+give+the+web+browser+time+to+receive+the+data%0A++++delay%2810%29%3B%0A++++%2F%2F+close+the+connection%3A%0A++++client.stop%28%29%3B%0A++++Serial.println%28%22client+disconnected%22%29%3B%0A++%7D%0A++delay%282000%29%3B%0A%7D%0A%0A%0Avoid+Cal_Temp%28%29%0A%7B%0A++if+%28TempHi%260x80%29+++++%2F%2F+If+bit7+of+the+TempHi+is+HIGH+then+the+temperature+is+negative%0A++++P_N+%3D+0%3B%0A++else+++++++%2F%2F+Else+the+temperature+is+positive%0A++P_N+%3D+1%3B%0A++TempHi+%3D+TempHi+%26+0x7F%3B+++%2F%2F+Remove+sign%0A++TempLo+%3D+TempLo+%26+0xF0%3B+++%2F%2F+Filter+out+last+nibble%0A++TempLo+%3D+TempLo+%3E%3E4%3B+%2F%2F+Shift+right+4+times%0A++Decimal+%3D+TempLo%3B%0A++Decimal+%3D+Decimal+*+625%3B++%2F%2F+Each+bit+%3D+0.0625+degree+C%0A++combined_temp_C%3D+TempHi+%2B+TempLo*.0625%3B%0A++combined_temp_F+%3D+combined_temp_C*1.8%2B32%3B%0A++sprintf%28strTempC%2C+%22%25f%22%2C+combined_temp_C%29%3B%0A++sprintf%28strTempF%2C+%22%25f%22%2C+combined_temp_F%29%3B%0A%7D%0A%2F%2F%2F%2FCelsius+to+Kelvin+conversion%0A%2F%2Fdouble+Kelvin%28double+celsius%29%0A%2F%2F%7B%0A%2F%2F++++++++return+celsius+%2B+273.15%3B%0A%2F%2F%7D%0A%2F%2F+dewPoint+function+NOAA%0A%2F%2F+reference%3A+http%3A%2F%2Fwahiduddin.net%2Fcalc%2Fdensity_algorithms.htm+++%0Adouble+dewPoint%28double+celsius%2C+double+humidity%29%0A%7B%0A++double+A0%3D+373.15%2F%28273.15+%2B+celsius%29%3B%0A++double+SUM+%3D+-7.90298+*+%28A0-1%29%3B%0A++SUM+%2B%3D+5.02808+*+log10%28A0%29%3B%0A++SUM+%2B%3D+-1.3816e-7+*+%28pow%2810%2C+%2811.344*%281-1%2FA0%29%29%29-1%29+%3B%0A++SUM+%2B%3D+8.1328e-3+*+%28pow%2810%2C%28-3.49149*%28A0-1%29%29%29-1%29+%3B%0A++SUM+%2B%3D+log10%281013.246%29%3B%0A++double+VP+%3D+pow%2810%2C+SUM-3%29+*+humidity%3B%0A++double+T+%3D+log%28VP%2F0.61078%29%3B+++%2F%2F+temp+var%0A++return+%28241.88+*+T%29+%2F+%2817.558-T%29%3B%0A%7D%0A%2F%2F+delta+max+%3D+0.6544+wrt+dewPoint%28%29%0A%2F%2F+5x+faster+than+dewPoint%28%29%0A%2F%2F+reference%3A+http%3A%2F%2Fen.wikipedia.org%2Fwiki%2FDew_point++%0Adouble+dewPointFast%28double+celsius%2C+double+humidity%29%0A%7B%0A++double+a+%3D+17.271%3B%0A++double+b+%3D+237.7%3B%0A++double+temp+%3D+%28a+*+celsius%29+%2F+%28b+%2B+celsius%29+%2B+log%28humidity%2F100%29%3B%0A++double+Td+%3D+%28b+*+temp%29+%2F+%28a+-+temp%29%3B%0A++return+Td%3B%0A%7D]&lt;/p&gt;&lt;div&gt;&lt;/div&gt;&lt;img src="https://community.element14.com/aggbug?PostID=17467&amp;AppID=145&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: DHT22 temperature and Humidity Sensor with Arduino Uno and Ethernet Card (ENC or WizNet) (Instant weather Station)</title><link>https://community.element14.com/products/arduino/b/blog/posts/dht22-temperature-and-humidity-sensor-with-arduino-uno-and-ethernet-card-enc-or-wiznet-instant-weather-station</link><pubDate>Fri, 28 Nov 2014 17:34:42 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:a0f1f902-b83e-4a2c-be3e-16dea3a0e63d</guid><dc:creator>Former Member</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;With some help I&amp;#39;ve got the code to work sort of...&amp;nbsp; If you go to the webserver faintfuzzies.ca:8080 and let the code run 3 or 4 minutes will see that things go a bit haywire.&amp;nbsp; If you get nothing it just means that the webserver has crashed again.&amp;nbsp; I&amp;#39;ve tested it both with Chrome and Firefox with similar results.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;====&lt;/p&gt;&lt;p&gt;DWW&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=17467&amp;AppID=145&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: DHT22 temperature and Humidity Sensor with Arduino Uno and Ethernet Card (ENC or WizNet) (Instant weather Station)</title><link>https://community.element14.com/products/arduino/b/blog/posts/dht22-temperature-and-humidity-sensor-with-arduino-uno-and-ethernet-card-enc-or-wiznet-instant-weather-station</link><pubDate>Fri, 28 Nov 2014 14:28:09 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:a0f1f902-b83e-4a2c-be3e-16dea3a0e63d</guid><dc:creator>Former Member</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Yes I do have DHT library installed and I managed to fix the code up and got the DHT part working...&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;now I&amp;#39;ve new sets of errors.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;working2_2DHT.ino: In function ‘void sendTempToNetwork(EthernetClient)’:&lt;/p&gt;&lt;p&gt;working2_2DHT.ino:65:23: error: expected primary-expression before ‘.’ token&lt;/p&gt;&lt;p&gt;working2_2DHT.ino:70:23: error: expected primary-expression before ‘.’ token&lt;/p&gt;&lt;p&gt;working2_2DHT.ino:76:32: error: expected primary-expression before ‘.’ token&lt;/p&gt;&lt;p&gt;working2_2DHT.ino:76:51: error: expected primary-expression before ‘.’ token&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I believe the first error has to do with line 53 of your code, but I&amp;#39;m not sure what is wrong. &lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=17467&amp;AppID=145&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: DHT22 temperature and Humidity Sensor with Arduino Uno and Ethernet Card (ENC or WizNet) (Instant weather Station)</title><link>https://community.element14.com/products/arduino/b/blog/posts/dht22-temperature-and-humidity-sensor-with-arduino-uno-and-ethernet-card-enc-or-wiznet-instant-weather-station</link><pubDate>Thu, 27 Nov 2014 00:47:57 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:a0f1f902-b83e-4a2c-be3e-16dea3a0e63d</guid><dc:creator>Former Member</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Tried this code with my Arduino Uno and Arduino Ethernet Shield.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;So far I&amp;#39;ve got these errors:&lt;/p&gt;&lt;p&gt;sketch_nov26b.ino:7:1: error: ‘dht’ does not name a type&lt;/p&gt;&lt;p&gt;sketch_nov26b.ino: In function ‘void sendTempToNetwork(EthernetClient)’:&lt;/p&gt;&lt;p&gt;sketch_nov26b.ino:56:18: error: expected primary-expression before ‘.’ token&lt;/p&gt;&lt;p&gt;sketch_nov26b.ino:58:23: error: expected primary-expression before ‘.’ token&lt;/p&gt;&lt;p&gt;sketch_nov26b.ino:62:23: error: expected primary-expression before ‘.’ token&lt;/p&gt;&lt;p&gt;sketch_nov26b.ino:67:32: error: expected primary-expression before ‘.’ token&lt;/p&gt;&lt;p&gt;sketch_nov26b.ino:67:48: error: expected primary-expression before ‘.’ token&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=17467&amp;AppID=145&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: DHT22 temperature and Humidity Sensor with Arduino Uno and Ethernet Card (ENC or WizNet) (Instant weather Station)</title><link>https://community.element14.com/products/arduino/b/blog/posts/dht22-temperature-and-humidity-sensor-with-arduino-uno-and-ethernet-card-enc-or-wiznet-instant-weather-station</link><pubDate>Sun, 06 Apr 2014 22:10:38 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:a0f1f902-b83e-4a2c-be3e-16dea3a0e63d</guid><dc:creator>Former Member</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;How DO I Add DHT11 library .. I tried Changing DHT22 to DHT11 in source code But it doesnt work. its comming up with error saying ;&lt;/p&gt;&lt;p&gt;&amp;#39;dht&amp;#39; does not name type&lt;/p&gt;&lt;p&gt;DCT22_test:7: error: &amp;#39;dht&amp;#39; does not name a type&lt;/p&gt;&lt;p&gt;DCT22_test.ino: In function &amp;#39;void sendTempToNetwork(EthernetClient)&amp;#39;:&lt;/p&gt;&lt;p&gt;DCT22_test:62: error: &amp;#39;DHT&amp;#39; was not declared in this scope&lt;/p&gt;&lt;p&gt;I am trying to use DHT11 in same code above !&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thank you&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=17467&amp;AppID=145&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item></channel></rss>