{"id":3320,"date":"2026-02-22T03:00:00","date_gmt":"2026-02-22T03:00:00","guid":{"rendered":"https:\/\/pirhome.com\/?p=3319"},"modified":"2026-02-22T03:00:00","modified_gmt":"2026-02-22T03:00:00","slug":"pir-daylight-harvesting","status":"publish","type":"post","link":"http:\/\/www.pirhome.com\/?p=3320","title":{"rendered":"PIR Sensor for Smart Lighting: Daylight Harvesting Integration"},"content":{"rendered":"<h2>Introduction<\/h2>\n<p>Smart lighting systems combine PIR occupancy sensing with daylight harvesting (adjusting light levels based on available sunlight) to maximize energy savings. This article explains the integration.<\/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>\nIf (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<\/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:<\/p>\n<ul>\n<li><strong>Leviton OSSMT-GDW:<\/strong> PIR + daylight sensor.<\/li>\n<li><strong>Lutron LRF2-OCR2B-P:<\/strong> PIR + photosensor.<\/li>\n<li><strong>Hubbell H-MOSS series:<\/strong> Dual-tech occupancy + daylight.<\/li>\n<\/ul>\n<h3>Sensors with I2C Interface<\/h3>\n<p>Digital PIR sensors can be combined with digital light sensors (e.g., TSL2561, BH1750) 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>Case Study: Office Retrofit<\/h2>\n<p>An office installed PIR\/daylight sensors in each cubicle area. Lights automatically turned off when cubicles were empty, and dimmed when sufficient daylight was available. Energy savings: 45%.<\/p>\n<h2>Implementation with Arduino\/ESP<\/h2>\n<pre><code>int pirPin = 2;\nint lightSensorPin = A0;\nint lightSetpoint = 300; \/\/ ADC value\nint lightOutput = 9; \/\/ PWM to LED\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 (adjusting light levels based on available sunlight) to maximize energy savings. This article explains the integration. 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 [&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-3320","post","type-post","status-publish","format-standard","hentry","category-reference"],"blocksy_meta":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\r\n<title>PIR Sensor for Smart Lighting: 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=3320\" \/>\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: Daylight Harvesting Integration - PIRHOME\" \/>\r\n<meta property=\"og:description\" content=\"Introduction Smart lighting systems combine PIR occupancy sensing with daylight harvesting (adjusting light levels based on available sunlight) to maximize energy savings. This article explains the integration. 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 [&hellip;]\" \/>\r\n<meta property=\"og:url\" content=\"https:\/\/www.pirhome.com\/?p=3320\" \/>\r\n<meta property=\"og:site_name\" content=\"PIRHOME\" \/>\r\n<meta property=\"article:published_time\" content=\"2026-02-22T03: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=3320#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.pirhome.com\\\/?p=3320\"},\"author\":{\"name\":\"nic@nicsky.com\",\"@id\":\"http:\\\/\\\/www.pirhome.com\\\/#\\\/schema\\\/person\\\/41049b5236f9c77c9314997d070db3e3\"},\"headline\":\"PIR Sensor for Smart Lighting: Daylight Harvesting Integration\",\"datePublished\":\"2026-02-22T03:00:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.pirhome.com\\\/?p=3320\"},\"wordCount\":302,\"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=3320#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.pirhome.com\\\/?p=3320\",\"url\":\"https:\\\/\\\/www.pirhome.com\\\/?p=3320\",\"name\":\"PIR Sensor for Smart Lighting: Daylight Harvesting Integration - PIRHOME\",\"isPartOf\":{\"@id\":\"http:\\\/\\\/www.pirhome.com\\\/#website\"},\"datePublished\":\"2026-02-22T03:00:00+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.pirhome.com\\\/?p=3320#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.pirhome.com\\\/?p=3320\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.pirhome.com\\\/?p=3320#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"http:\\\/\\\/www.pirhome.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"PIR Sensor for Smart Lighting: 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: 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=3320","og_locale":"en_US","og_type":"article","og_title":"PIR Sensor for Smart Lighting: Daylight Harvesting Integration - PIRHOME","og_description":"Introduction Smart lighting systems combine PIR occupancy sensing with daylight harvesting (adjusting light levels based on available sunlight) to maximize energy savings. This article explains the integration. 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 [&hellip;]","og_url":"https:\/\/www.pirhome.com\/?p=3320","og_site_name":"PIRHOME","article_published_time":"2026-02-22T03: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=3320#article","isPartOf":{"@id":"https:\/\/www.pirhome.com\/?p=3320"},"author":{"name":"nic@nicsky.com","@id":"http:\/\/www.pirhome.com\/#\/schema\/person\/41049b5236f9c77c9314997d070db3e3"},"headline":"PIR Sensor for Smart Lighting: Daylight Harvesting Integration","datePublished":"2026-02-22T03:00:00+00:00","mainEntityOfPage":{"@id":"https:\/\/www.pirhome.com\/?p=3320"},"wordCount":302,"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=3320#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.pirhome.com\/?p=3320","url":"https:\/\/www.pirhome.com\/?p=3320","name":"PIR Sensor for Smart Lighting: Daylight Harvesting Integration - PIRHOME","isPartOf":{"@id":"http:\/\/www.pirhome.com\/#website"},"datePublished":"2026-02-22T03:00:00+00:00","breadcrumb":{"@id":"https:\/\/www.pirhome.com\/?p=3320#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.pirhome.com\/?p=3320"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.pirhome.com\/?p=3320#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"http:\/\/www.pirhome.com\/"},{"@type":"ListItem","position":2,"name":"PIR Sensor for Smart Lighting: 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\/3320","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=3320"}],"version-history":[{"count":1,"href":"http:\/\/www.pirhome.com\/index.php?rest_route=\/wp\/v2\/posts\/3320\/revisions"}],"predecessor-version":[{"id":3351,"href":"http:\/\/www.pirhome.com\/index.php?rest_route=\/wp\/v2\/posts\/3320\/revisions\/3351"}],"wp:attachment":[{"href":"http:\/\/www.pirhome.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3320"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.pirhome.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3320"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.pirhome.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3320"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}