{"id":367,"date":"2018-12-12T16:39:10","date_gmt":"2018-12-12T16:39:10","guid":{"rendered":"http:\/\/blog.cup-of-joe.me\/?p=367"},"modified":"2018-12-12T19:41:13","modified_gmt":"2018-12-12T19:41:13","slug":"mast-temp-humidity-sensors","status":"publish","type":"post","link":"http:\/\/blog.cup-of-joe.me\/?p=367","title":{"rendered":"Mast &#8211; Temp &#038; Humidity Sensors"},"content":{"rendered":"<p>To start off, I wanted to say that I know there are other sensors that can do what the sensors that I use can do and possibly even do it better, but I&#8217;ve had these two sensors for several years now and they have done exactly what I&#8217;ve needed them to without fail.<\/p>\n<p>For temperature I use a DS18B20 and for humidity I use a Honeywell HIH-5031. \u00a0The DS18B20 is a very popular temperature sensor which uses the 1 wire protocol. \u00a0the HIH-5031 is an analog humidity sensor that runs on 3V. \u00a0The DS18B20 outputs a temp in C with the Arduino code, but the HIH-5031 only outputs a voltage which requires some code to translate into humidity. \u00a0I&#8217;ll post all of that later when I post about the code I use on the Raspberry Pi.<\/p>\n<p><a href=\"http:\/\/blog.cup-of-joe.me\/wp-content\/uploads\/2018\/12\/img_0501.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-348\" src=\"http:\/\/blog.cup-of-joe.me\/wp-content\/uploads\/2018\/12\/img_0501-300x225.jpg\" alt=\"\" width=\"300\" height=\"225\" srcset=\"http:\/\/blog.cup-of-joe.me\/wp-content\/uploads\/2018\/12\/img_0501-300x225.jpg 300w, http:\/\/blog.cup-of-joe.me\/wp-content\/uploads\/2018\/12\/img_0501-768x576.jpg 768w, http:\/\/blog.cup-of-joe.me\/wp-content\/uploads\/2018\/12\/img_0501-1024x768.jpg 1024w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Sensor Wiring:<\/p>\n<p>For wiring these sensors, each has 3 pins, a power, ground &amp; read pin. \u00a0Because each sensor really needs to be exposed to air to reach correctly, I soldered several single wires to their pins and then used shrink tube to cover the connections and then another piece of shrink tube to collect the 3 wires together and cover a bit of the end of the sensor. \u00a0(You can see this in the pic above) \u00a0The two sets of 3 wires are brought together into a single cat 3 cable (4 wires). \u00a0I wire the power of each sensor to a red wire, the ground of each sensor to a black wire, then the read pins of each sensor to it&#8217;s own wire. \u00a0This allows me to be able to have only 4 wires in the wiring harness for these two sensors instead of 6.<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"http:\/\/blog.cup-of-joe.me\/wp-content\/uploads\/2018\/12\/img_0498-e1544631018349.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-351\" src=\"http:\/\/blog.cup-of-joe.me\/wp-content\/uploads\/2018\/12\/img_0498-e1544631018349-225x300.jpg\" alt=\"\" width=\"225\" height=\"300\" srcset=\"http:\/\/blog.cup-of-joe.me\/wp-content\/uploads\/2018\/12\/img_0498-e1544631018349-225x300.jpg 225w, http:\/\/blog.cup-of-joe.me\/wp-content\/uploads\/2018\/12\/img_0498-e1544631018349-768x1024.jpg 768w\" sizes=\"(max-width: 225px) 100vw, 225px\" \/><\/a> <a href=\"http:\/\/blog.cup-of-joe.me\/wp-content\/uploads\/2018\/12\/img_0500.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-352\" src=\"http:\/\/blog.cup-of-joe.me\/wp-content\/uploads\/2018\/12\/img_0500-300x225.jpg\" alt=\"\" width=\"300\" height=\"225\" srcset=\"http:\/\/blog.cup-of-joe.me\/wp-content\/uploads\/2018\/12\/img_0500-300x225.jpg 300w, http:\/\/blog.cup-of-joe.me\/wp-content\/uploads\/2018\/12\/img_0500-768x576.jpg 768w, http:\/\/blog.cup-of-joe.me\/wp-content\/uploads\/2018\/12\/img_0500-1024x768.jpg 1024w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Sensor Mounting:<\/p>\n<p>As you can see above, I use an offshoot of my main mast to hold these two sensors. \u00a0The sensors themselves sit within a piece of 1 inch PVC that has holes drilled in it to allow for air flow. \u00a0This is covered with a 3&#8243; PVC pipe that protects from solar radiation as well as rain. \u00a0I don&#8217;t have many of the details on all the PVC connections I used to make this happen, but all I did was go to the hardware store and start piecing things together to get what I wanted.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>To start off, I wanted to say that I know there are other sensors that can do what the sensors that I use can do and possibly even do it better, but I&#8217;ve had these two sensors for several years now and they have done exactly what I&#8217;ve needed them to without fail. For temperature [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[2,7],"tags":[],"_links":{"self":[{"href":"http:\/\/blog.cup-of-joe.me\/index.php?rest_route=\/wp\/v2\/posts\/367"}],"collection":[{"href":"http:\/\/blog.cup-of-joe.me\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.cup-of-joe.me\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.cup-of-joe.me\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.cup-of-joe.me\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=367"}],"version-history":[{"count":2,"href":"http:\/\/blog.cup-of-joe.me\/index.php?rest_route=\/wp\/v2\/posts\/367\/revisions"}],"predecessor-version":[{"id":369,"href":"http:\/\/blog.cup-of-joe.me\/index.php?rest_route=\/wp\/v2\/posts\/367\/revisions\/369"}],"wp:attachment":[{"href":"http:\/\/blog.cup-of-joe.me\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=367"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.cup-of-joe.me\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=367"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.cup-of-joe.me\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=367"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}