{"id":3436,"date":"2023-03-03T23:16:26","date_gmt":"2023-03-04T07:16:26","guid":{"rendered":"https:\/\/digitalnigel.com\/wordpress\/?p=3436"},"modified":"2023-03-03T23:17:55","modified_gmt":"2023-03-04T07:17:55","slug":"air-quality-sensor","status":"publish","type":"post","link":"https:\/\/digitalnigel.com\/wordpress\/?p=3436","title":{"rendered":"Air Quality Sensor"},"content":{"rendered":"\n<p>A couple years ago I cobbled together a couple of air quality sensors to give my family and I a better idea of the state of the air in and outside our home, particularly during what seems to be becoming the annual fire season in the Pacific Northwest.<\/p>\n\n\n\n<p>These were cobbled together devices mostly with parts I already had laying around, which worked fine, and continue to operate well, but as we approach another summer I was interested in putting together a couple additional sensors as well as improving the state of the hardware.<\/p>\n\n\n\n<p>The sensor I&#8217;ve put together is based around an ESP32 reading data from a pair of Plantower PMS7003 particulate sensors, and a Bosch Sensortec BME280 Temperature, Pressure, and Humidity sensor. The data from all the sensors is then sent to my logging\/graphing system via WiFi.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2023\/03\/IMG_0027-scaled.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"768\" src=\"https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2023\/03\/IMG_0027-1024x768.jpg\" alt=\"\" class=\"wp-image-3437\" srcset=\"https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2023\/03\/IMG_0027-1024x768.jpg 1024w, https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2023\/03\/IMG_0027-300x225.jpg 300w, https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2023\/03\/IMG_0027-150x113.jpg 150w, https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2023\/03\/IMG_0027-768x576.jpg 768w, https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2023\/03\/IMG_0027-1536x1152.jpg 1536w, https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2023\/03\/IMG_0027-2048x1536.jpg 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>I took inspiration from the commercially available sensors from PurpleAir and designed it to fit within a 3&#8243; PVC pipe cap, along with a 3D printed carrier, which provides for a nice outdoor enclosure that can be easily mounted in a variety of locations.<\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2023\/03\/IMG_0049-scaled.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"768\" data-id=\"3439\" src=\"https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2023\/03\/IMG_0049-1024x768.jpg\" alt=\"\" class=\"wp-image-3439\" srcset=\"https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2023\/03\/IMG_0049-1024x768.jpg 1024w, https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2023\/03\/IMG_0049-300x225.jpg 300w, https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2023\/03\/IMG_0049-150x113.jpg 150w, https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2023\/03\/IMG_0049-768x576.jpg 768w, https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2023\/03\/IMG_0049-1536x1152.jpg 1536w, https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2023\/03\/IMG_0049-2048x1536.jpg 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2023\/03\/IMG_0050-scaled.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"768\" data-id=\"3440\" src=\"https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2023\/03\/IMG_0050-1024x768.jpg\" alt=\"\" class=\"wp-image-3440\" srcset=\"https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2023\/03\/IMG_0050-1024x768.jpg 1024w, https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2023\/03\/IMG_0050-300x225.jpg 300w, https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2023\/03\/IMG_0050-150x113.jpg 150w, https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2023\/03\/IMG_0050-768x576.jpg 768w, https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2023\/03\/IMG_0050-1536x1152.jpg 1536w, https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2023\/03\/IMG_0050-2048x1536.jpg 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2023\/03\/IMG_0053-scaled.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"768\" height=\"1024\" data-id=\"3438\" src=\"https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2023\/03\/IMG_0053-768x1024.jpg\" alt=\"\" class=\"wp-image-3438\" srcset=\"https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2023\/03\/IMG_0053-768x1024.jpg 768w, https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2023\/03\/IMG_0053-225x300.jpg 225w, https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2023\/03\/IMG_0053-113x150.jpg 113w, https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2023\/03\/IMG_0053-1152x1536.jpg 1152w, https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2023\/03\/IMG_0053-1536x2048.jpg 1536w, https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2023\/03\/IMG_0053-scaled.jpg 1920w\" sizes=\"auto, (max-width: 768px) 100vw, 768px\" \/><\/a><\/figure>\n<\/figure>\n\n\n\n<p>The 3D printed carrier has vent openings for the particulate sensors, and the temperature sensor extends below the main body to have the best exposure to the ambient temperature with minimized effects of internal heating, but still being sheltered under the cap.<\/p>\n\n\n\n<p>I&#8217;m looking forward to getting a few of these deployed, and getting a better picture of the air quality in my area over the coming months.<\/p>\n\n\n\n<p>Lastly, the project is open source and you can <a href=\"https:\/\/github.com\/nigelvh\/AQI-Sensor\">find all the resources on my GitHub repo<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A couple years ago I cobbled together a couple of air quality sensors to give my family and I a better idea of the state of the air in and outside our home, particularly during what seems to be becoming &hellip; <a href=\"https:\/\/digitalnigel.com\/wordpress\/?p=3436\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,20,14],"tags":[],"class_list":["post-3436","post","type-post","status-publish","format-standard","hentry","category-electronics","category-projects","category-weather"],"_links":{"self":[{"href":"https:\/\/digitalnigel.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/3436","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/digitalnigel.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/digitalnigel.com\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/digitalnigel.com\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/digitalnigel.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3436"}],"version-history":[{"count":3,"href":"https:\/\/digitalnigel.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/3436\/revisions"}],"predecessor-version":[{"id":3443,"href":"https:\/\/digitalnigel.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/3436\/revisions\/3443"}],"wp:attachment":[{"href":"https:\/\/digitalnigel.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3436"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/digitalnigel.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3436"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/digitalnigel.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3436"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}