{"id":4101,"date":"2026-04-28T09:00:00","date_gmt":"2026-04-28T09:00:00","guid":{"rendered":"https:\/\/pirhome.com\/?p=4029"},"modified":"2026-04-28T09:00:00","modified_gmt":"2026-04-28T09:00:00","slug":"pir-smart-lighting-daylight-harvesting","status":"publish","type":"post","link":"http:\/\/www.pirhome.com\/?p=4101","title":{"rendered":"PIR Sensor for Smart Lighting and Daylight Harvesting Integration"},"content":{"rendered":"<h2>Introduction<\/h2>\n<p>Smart lighting systems combine PIR occupancy sensing with daylight harvesting to maximize energy savings. This article explains the integration and best practices.<\/p>\n<h2>What is Daylight Harvesting?<\/h2>\n<p>Daylight harvesting automatically dims or turns off electric lights when sufficient natural light is available. A photosensor measures ambient light level and sends this information to the lighting controller.<\/p>\n<h2>Combining with PIR Occupancy<\/h2>\n<p>The full smart lighting system uses:<\/p>\n<ul>\n<li><strong>PIR sensor:<\/strong> Detects if space is occupied<\/li>\n<li><strong>Photosensor:<\/strong> Measures ambient light level<\/li>\n<li><strong>Controller:<\/strong> Makes decisions based on both inputs<\/li>\n<\/ul>\n<h2>Control Logic<\/h2>\n<pre><code>If (occupied) {\n    If (ambient light < desired level) {\n        Turn lights ON (or dim to supplement)\n    } else {\n        Keep lights OFF (or dim to minimum)\n    }\n} else {\n    Lights OFF (or very low for safety\/security)\n}\n<\/code><\/pre>\n<h2>Integration Options<\/h2>\n<h3>Separate Sensors<\/h3>\n<p>Independent PIR and photosensor connected to a central controller. Flexible but requires more wiring.<\/p>\n<h3>Combined Sensor Units<\/h3>\n<p>Many manufacturers offer sensors combining PIR and photosensor in a single housing. Examples: Leviton OSSMT-GDW, Lutron LRF2-OCR2B-P, Hubbell H-MOSS series.<\/p>\n<h3>Sensors with I2C Interface<\/h3>\n<p>Digital PIR sensors can be combined with digital light sensors on the same I2C bus, read by a microcontroller.<\/p>\n<h2>Daylight Sensor Placement<\/h2>\n<ul>\n<li><strong>Ceiling-mounted, facing down:<\/strong> Measures light on work plane<\/li>\n<li><strong>Near windows:<\/strong> Measures incoming daylight<\/li>\n<li><strong>Avoid direct sunlight:<\/strong> Can saturate sensor<\/li>\n<\/ul>\n<h2>Calibration<\/h2>\n<p>The system needs calibration to set:<\/p>\n<ul>\n<li>Desired light level (setpoint)<\/li>\n<li>Deadband (to avoid oscillation)<\/li>\n<li>Fade rates (smooth transitions)<\/li>\n<li>Minimum dim level<\/li>\n<\/ul>\n<h2>Energy Savings<\/h2>\n<p>Studies show that combining occupancy sensing with daylight harvesting can save 30-60% of lighting energy compared to manual control.<\/p>\n<h2>Implementation Example with Arduino\/ESP<\/h2>\n<pre><code>int pirPin = 2;\nint lightSensorPin = A0;\nint lightSetpoint = 300;\nint lightOutput = 9;\n\nvoid loop() {\n    bool occupied = digitalRead(pirPin);\n    int lightLevel = analogRead(lightSensorPin);\n    \n    if (occupied) {\n        if (lightLevel < lightSetpoint) {\n            int required = map(lightSetpoint - lightLevel, 0, 1023, 0, 255);\n            analogWrite(lightOutput, required);\n        } else {\n            analogWrite(lightOutput, 0);\n        }\n    } else {\n        analogWrite(lightOutput, 0);\n    }\n    delay(1000);\n}\n<\/code><\/pre>\n<h2>Conclusion<\/h2>\n<p>PIR sensors are essential components of smart lighting systems. Combined with daylight harvesting, they deliver maximum energy efficiency while maintaining occupant comfort.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction Smart lighting systems combine PIR occupancy sensing with daylight harvesting to maximize energy savings. This article explains the integration and best practices. What is Daylight Harvesting? Daylight harvesting automatically dims or turns off electric lights when sufficient natural light is available. A photosensor measures ambient light level and sends this information to the lighting [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-4101","post","type-post","status-publish","format-standard","hentry","category-reference"],"blocksy_meta":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\r\n<title>PIR Sensor for Smart Lighting and Daylight Harvesting Integration - PIRHOME<\/title>\r\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\r\n<link rel=\"canonical\" href=\"https:\/\/www.pirhome.com\/?p=4101\" \/>\r\n<meta property=\"og:locale\" content=\"en_US\" \/>\r\n<meta property=\"og:type\" content=\"article\" \/>\r\n<meta property=\"og:title\" content=\"PIR Sensor for Smart Lighting and Daylight Harvesting Integration - PIRHOME\" \/>\r\n<meta property=\"og:description\" content=\"Introduction Smart lighting systems combine PIR occupancy sensing with daylight harvesting to maximize energy savings. This article explains the integration and best practices. What is Daylight Harvesting? Daylight harvesting automatically dims or turns off electric lights when sufficient natural light is available. A photosensor measures ambient light level and sends this information to the lighting [&hellip;]\" \/>\r\n<meta property=\"og:url\" content=\"https:\/\/www.pirhome.com\/?p=4101\" \/>\r\n<meta property=\"og:site_name\" content=\"PIRHOME\" \/>\r\n<meta property=\"article:published_time\" content=\"2026-04-28T09:00:00+00:00\" \/>\r\n<meta name=\"author\" content=\"nic@nicsky.com\" \/>\r\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\r\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"nic@nicsky.com\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\r\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.pirhome.com\\\/?p=4101#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.pirhome.com\\\/?p=4101\"},\"author\":{\"name\":\"nic@nicsky.com\",\"@id\":\"http:\\\/\\\/www.pirhome.com\\\/#\\\/schema\\\/person\\\/41049b5236f9c77c9314997d070db3e3\"},\"headline\":\"PIR Sensor for Smart Lighting and Daylight Harvesting Integration\",\"datePublished\":\"2026-04-28T09:00:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.pirhome.com\\\/?p=4101\"},\"wordCount\":257,\"commentCount\":0,\"publisher\":{\"@id\":\"http:\\\/\\\/www.pirhome.com\\\/#organization\"},\"articleSection\":[\"Reference\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.pirhome.com\\\/?p=4101#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.pirhome.com\\\/?p=4101\",\"url\":\"https:\\\/\\\/www.pirhome.com\\\/?p=4101\",\"name\":\"PIR Sensor for Smart Lighting and Daylight Harvesting Integration - PIRHOME\",\"isPartOf\":{\"@id\":\"http:\\\/\\\/www.pirhome.com\\\/#website\"},\"datePublished\":\"2026-04-28T09:00:00+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.pirhome.com\\\/?p=4101#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.pirhome.com\\\/?p=4101\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.pirhome.com\\\/?p=4101#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"http:\\\/\\\/www.pirhome.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"PIR Sensor for Smart Lighting and Daylight Harvesting Integration\"}]},{\"@type\":\"WebSite\",\"@id\":\"http:\\\/\\\/www.pirhome.com\\\/#website\",\"url\":\"http:\\\/\\\/www.pirhome.com\\\/\",\"name\":\"PIRHOME\",\"description\":\"PIR &amp; Motion Sensor\",\"publisher\":{\"@id\":\"http:\\\/\\\/www.pirhome.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\\\/\\\/www.pirhome.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"http:\\\/\\\/www.pirhome.com\\\/#organization\",\"name\":\"PIRHOME\",\"url\":\"http:\\\/\\\/www.pirhome.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\\\/\\\/www.pirhome.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"http:\\\/\\\/www.pirhome.com\\\/wp-content\\\/uploads\\\/2026\\\/02\\\/cropped-\u5fae\u4fe1\u56fe\u7247_2026-02-19_222409_472.jpg\",\"contentUrl\":\"http:\\\/\\\/www.pirhome.com\\\/wp-content\\\/uploads\\\/2026\\\/02\\\/cropped-\u5fae\u4fe1\u56fe\u7247_2026-02-19_222409_472.jpg\",\"width\":512,\"height\":512,\"caption\":\"PIRHOME\"},\"image\":{\"@id\":\"http:\\\/\\\/www.pirhome.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"http:\\\/\\\/www.pirhome.com\\\/#\\\/schema\\\/person\\\/41049b5236f9c77c9314997d070db3e3\",\"name\":\"nic@nicsky.com\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/271d4eaab48e299e4fce771a8c43c537be3ac77a3115cc7de802a6c8b692d971?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/271d4eaab48e299e4fce771a8c43c537be3ac77a3115cc7de802a6c8b692d971?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/271d4eaab48e299e4fce771a8c43c537be3ac77a3115cc7de802a6c8b692d971?s=96&d=mm&r=g\",\"caption\":\"nic@nicsky.com\"},\"sameAs\":[\"http:\\\/\\\/www.pirhome.com\"],\"url\":\"http:\\\/\\\/www.pirhome.com\\\/?author=1\"}]}<\/script>\r\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"PIR Sensor for Smart Lighting and Daylight Harvesting Integration - PIRHOME","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.pirhome.com\/?p=4101","og_locale":"en_US","og_type":"article","og_title":"PIR Sensor for Smart Lighting and Daylight Harvesting Integration - PIRHOME","og_description":"Introduction Smart lighting systems combine PIR occupancy sensing with daylight harvesting to maximize energy savings. This article explains the integration and best practices. What is Daylight Harvesting? Daylight harvesting automatically dims or turns off electric lights when sufficient natural light is available. A photosensor measures ambient light level and sends this information to the lighting [&hellip;]","og_url":"https:\/\/www.pirhome.com\/?p=4101","og_site_name":"PIRHOME","article_published_time":"2026-04-28T09:00:00+00:00","author":"nic@nicsky.com","twitter_card":"summary_large_image","twitter_misc":{"Written by":"nic@nicsky.com","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.pirhome.com\/?p=4101#article","isPartOf":{"@id":"https:\/\/www.pirhome.com\/?p=4101"},"author":{"name":"nic@nicsky.com","@id":"http:\/\/www.pirhome.com\/#\/schema\/person\/41049b5236f9c77c9314997d070db3e3"},"headline":"PIR Sensor for Smart Lighting and Daylight Harvesting Integration","datePublished":"2026-04-28T09:00:00+00:00","mainEntityOfPage":{"@id":"https:\/\/www.pirhome.com\/?p=4101"},"wordCount":257,"commentCount":0,"publisher":{"@id":"http:\/\/www.pirhome.com\/#organization"},"articleSection":["Reference"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.pirhome.com\/?p=4101#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.pirhome.com\/?p=4101","url":"https:\/\/www.pirhome.com\/?p=4101","name":"PIR Sensor for Smart Lighting and Daylight Harvesting Integration - PIRHOME","isPartOf":{"@id":"http:\/\/www.pirhome.com\/#website"},"datePublished":"2026-04-28T09:00:00+00:00","breadcrumb":{"@id":"https:\/\/www.pirhome.com\/?p=4101#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.pirhome.com\/?p=4101"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.pirhome.com\/?p=4101#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"http:\/\/www.pirhome.com\/"},{"@type":"ListItem","position":2,"name":"PIR Sensor for Smart Lighting and Daylight Harvesting Integration"}]},{"@type":"WebSite","@id":"http:\/\/www.pirhome.com\/#website","url":"http:\/\/www.pirhome.com\/","name":"PIRHOME","description":"PIR &amp; Motion Sensor","publisher":{"@id":"http:\/\/www.pirhome.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/www.pirhome.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"http:\/\/www.pirhome.com\/#organization","name":"PIRHOME","url":"http:\/\/www.pirhome.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/www.pirhome.com\/#\/schema\/logo\/image\/","url":"http:\/\/www.pirhome.com\/wp-content\/uploads\/2026\/02\/cropped-\u5fae\u4fe1\u56fe\u7247_2026-02-19_222409_472.jpg","contentUrl":"http:\/\/www.pirhome.com\/wp-content\/uploads\/2026\/02\/cropped-\u5fae\u4fe1\u56fe\u7247_2026-02-19_222409_472.jpg","width":512,"height":512,"caption":"PIRHOME"},"image":{"@id":"http:\/\/www.pirhome.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"http:\/\/www.pirhome.com\/#\/schema\/person\/41049b5236f9c77c9314997d070db3e3","name":"nic@nicsky.com","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/271d4eaab48e299e4fce771a8c43c537be3ac77a3115cc7de802a6c8b692d971?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/271d4eaab48e299e4fce771a8c43c537be3ac77a3115cc7de802a6c8b692d971?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/271d4eaab48e299e4fce771a8c43c537be3ac77a3115cc7de802a6c8b692d971?s=96&d=mm&r=g","caption":"nic@nicsky.com"},"sameAs":["http:\/\/www.pirhome.com"],"url":"http:\/\/www.pirhome.com\/?author=1"}]}},"_links":{"self":[{"href":"http:\/\/www.pirhome.com\/index.php?rest_route=\/wp\/v2\/posts\/4101","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.pirhome.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.pirhome.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.pirhome.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.pirhome.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4101"}],"version-history":[{"count":1,"href":"http:\/\/www.pirhome.com\/index.php?rest_route=\/wp\/v2\/posts\/4101\/revisions"}],"predecessor-version":[{"id":4642,"href":"http:\/\/www.pirhome.com\/index.php?rest_route=\/wp\/v2\/posts\/4101\/revisions\/4642"}],"wp:attachment":[{"href":"http:\/\/www.pirhome.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4101"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.pirhome.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4101"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.pirhome.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4101"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}