{"id":1007,"date":"2026-02-19T07:00:00","date_gmt":"2026-02-19T07:00:00","guid":{"rendered":"https:\/\/pirhome.com\/?p=1007"},"modified":"2026-02-19T21:35:33","modified_gmt":"2026-02-19T13:35:33","slug":"pir-hold-time-block-time","status":"publish","type":"post","link":"https:\/\/www.pirhome.com\/?p=1007","title":{"rendered":"PIR Sensor Hold Time and Block Time Explained"},"content":{"rendered":"<h2>Introduction<\/h2>\n<p>When using PIR sensors, two timing parameters significantly affect behavior: <strong>hold time<\/strong> (also called delay time) and <strong>block time<\/strong> (lockout time). Understanding these parameters is essential for designing reliable motion-triggered systems.<\/p>\n<h2>Hold Time (Delay Time)<\/h2>\n<p><strong>Definition<\/strong>: The duration the output remains HIGH after motion is detected.<\/p>\n<p>On HC-SR501, this is adjusted via the &#8220;TIME&#8221; potentiometer, typically ranging from 5 to 200 seconds. When motion is detected, the output goes HIGH and stays HIGH for the set hold time, even if motion stops.<\/p>\n<h3>Repeatable Trigger Mode (H)<\/h3>\n<p>If motion continues to be detected during the hold time, the timer resets, extending the output HIGH period. This ensures the output stays HIGH as long as someone is moving in the area.<\/p>\n<h3>Non-Repeatable Trigger Mode (L)<\/h3>\n<p>The output stays HIGH for the full hold time regardless of subsequent motion, then goes LOW. The sensor ignores any motion during the hold time.<\/p>\n<h2>Block Time (Lockout Time)<\/h2>\n<p><strong>Definition<\/strong>: The period after the hold time ends during which the sensor will not trigger again.<\/p>\n<p>On HC-SR501, block time is fixed at approximately 2.5 seconds. This prevents the sensor from immediately retriggering, allowing the circuit to stabilize. During block time, the sensor ignores motion.<\/p>\n<p>Block time is sometimes referred to as &#8220;inhibit time&#8221; and is essential for reducing false triggers from electrical noise or minor fluctuations.<\/p>\n<h2>Timing Diagram<\/h2>\n<pre>\nMotion     |   |   |   |   |   |   |   |   |   |   |\n           +---+   +---+       +---+       +---+\nOutput     |_______|               |_______|\nHold Time  |<----->|               |<----->|\nBlock Time         |<->|                   |<->|\n<\/pre>\n<h2>Adjusting for Your Application<\/h2>\n<h3>Short Hold Time (5-10 seconds)<\/h3>\n<ul>\n<li>Ideal for: Occupancy sensing where you want fast response when person leaves.<\/li>\n<li>Example: Automatic light in closet.<\/li>\n<\/ul>\n<h3>Long Hold Time (1-2 minutes)<\/h3>\n<ul>\n<li>Ideal for: Security systems where you want alarm to stay triggered.<\/li>\n<li>Example: Intruder alarm.<\/li>\n<\/ul>\n<h3>Applications Requiring Rapid Retriggering<\/h3>\n<p>If you need to detect motion quickly after a previous event, consider using non-repeatable mode with a short hold time, or choose a sensor with adjustable block time.<\/p>\n<h2>Measuring Timing with an Oscilloscope<\/h2>\n<p>To verify your sensor&#8217;s timing, connect the output to an oscilloscope or logic analyzer. Trigger on rising edge and measure the pulse width. This is the hold time. The period until the next possible trigger (including block time) can be observed as the minimum time between two output pulses.<\/p>\n<h2>Limitations of Potentiometer Adjustment<\/h2>\n<p>The potentiometers on HC-SR501 are not precise; they vary between units and with temperature. If exact timing is critical, consider using a microcontroller to interpret the sensor output and implement your own timing logic, ignoring the sensor&#8217;s internal timing.<\/p>\n<h2>Example: Custom Timing with Arduino<\/h2>\n<p>You can set the sensor&#8217;s hold time to minimum and use Arduino to extend it:<\/p>\n<pre><code>const int pirPin = 2;\nconst int holdTime = 10000; \/\/ 10 seconds in ms\nunsigned long lastTrigger = 0;\nbool outputState = false;\n\nvoid setup() {\n  pinMode(pirPin, INPUT);\n  pinMode(13, OUTPUT);\n}\n\nvoid loop() {\n  if (digitalRead(pirPin) == HIGH) {\n    lastTrigger = millis();\n    outputState = true;\n  }\n  if (outputState && (millis() - lastTrigger > holdTime)) {\n    outputState = false;\n  }\n  digitalWrite(13, outputState ? HIGH : LOW);\n}\n<\/code><\/pre>\n<h2>Conclusion<\/h2>\n<p>Hold time and block time are critical for PIR sensor behavior. By understanding and adjusting them, you can tailor motion detection to your specific needs.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction When using PIR sensors, two timing parameters significantly affect behavior: hold time (also called delay time) and block time (lockout time). Understanding these parameters is essential for designing reliable motion-triggered systems. Hold Time (Delay Time) Definition: The duration the output remains HIGH after motion is detected. On HC-SR501, this is adjusted via the &#8220;TIME&#8221; [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-1007","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 Hold Time and Block Time Explained - 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=\"http:\/\/www.pirhome.com\/?p=1007\" \/>\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 Hold Time and Block Time Explained - PIRHOME\" \/>\r\n<meta property=\"og:description\" content=\"Introduction When using PIR sensors, two timing parameters significantly affect behavior: hold time (also called delay time) and block time (lockout time). Understanding these parameters is essential for designing reliable motion-triggered systems. Hold Time (Delay Time) Definition: The duration the output remains HIGH after motion is detected. On HC-SR501, this is adjusted via the &#8220;TIME&#8221; [&hellip;]\" \/>\r\n<meta property=\"og:url\" content=\"http:\/\/www.pirhome.com\/?p=1007\" \/>\r\n<meta property=\"og:site_name\" content=\"PIRHOME\" \/>\r\n<meta property=\"article:published_time\" content=\"2026-02-19T07:00:00+00:00\" \/>\r\n<meta property=\"article:modified_time\" content=\"2026-02-19T13:35:33+00:00\" \/>\r\n<meta name=\"author\" content=\"admin\" \/>\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=\"admin\" \/>\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\":\"http:\\\/\\\/www.pirhome.com\\\/?p=1007#article\",\"isPartOf\":{\"@id\":\"http:\\\/\\\/www.pirhome.com\\\/?p=1007\"},\"author\":{\"name\":\"admin\",\"@id\":\"http:\\\/\\\/www.pirhome.com\\\/#\\\/schema\\\/person\\\/1ef19528806471fe6dab5630c9b93f15\"},\"headline\":\"PIR Sensor Hold Time and Block Time Explained\",\"datePublished\":\"2026-02-19T07:00:00+00:00\",\"dateModified\":\"2026-02-19T13:35:33+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\\\/\\\/www.pirhome.com\\\/?p=1007\"},\"wordCount\":447,\"commentCount\":0,\"publisher\":{\"@id\":\"http:\\\/\\\/www.pirhome.com\\\/#organization\"},\"articleSection\":[\"Reference\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"http:\\\/\\\/www.pirhome.com\\\/?p=1007#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"http:\\\/\\\/www.pirhome.com\\\/?p=1007\",\"url\":\"http:\\\/\\\/www.pirhome.com\\\/?p=1007\",\"name\":\"PIR Sensor Hold Time and Block Time Explained - PIRHOME\",\"isPartOf\":{\"@id\":\"http:\\\/\\\/www.pirhome.com\\\/#website\"},\"datePublished\":\"2026-02-19T07:00:00+00:00\",\"dateModified\":\"2026-02-19T13:35:33+00:00\",\"breadcrumb\":{\"@id\":\"http:\\\/\\\/www.pirhome.com\\\/?p=1007#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\\\/\\\/www.pirhome.com\\\/?p=1007\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\\\/\\\/www.pirhome.com\\\/?p=1007#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"http:\\\/\\\/www.pirhome.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"PIR Sensor Hold Time and Block Time Explained\"}]},{\"@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\":\"https:\\\/\\\/www.pirhome.com\\\/wp-content\\\/uploads\\\/2026\\\/02\\\/cropped-\u5fae\u4fe1\u56fe\u7247_2026-02-19_222409_472.jpg\",\"contentUrl\":\"https:\\\/\\\/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\\\/1ef19528806471fe6dab5630c9b93f15\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"url\":\"https:\\\/\\\/www.pirhome.com\\\/?author=2\"}]}<\/script>\r\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"PIR Sensor Hold Time and Block Time Explained - 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":"http:\/\/www.pirhome.com\/?p=1007","og_locale":"en_US","og_type":"article","og_title":"PIR Sensor Hold Time and Block Time Explained - PIRHOME","og_description":"Introduction When using PIR sensors, two timing parameters significantly affect behavior: hold time (also called delay time) and block time (lockout time). Understanding these parameters is essential for designing reliable motion-triggered systems. Hold Time (Delay Time) Definition: The duration the output remains HIGH after motion is detected. On HC-SR501, this is adjusted via the &#8220;TIME&#8221; [&hellip;]","og_url":"http:\/\/www.pirhome.com\/?p=1007","og_site_name":"PIRHOME","article_published_time":"2026-02-19T07:00:00+00:00","article_modified_time":"2026-02-19T13:35:33+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"admin","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"http:\/\/www.pirhome.com\/?p=1007#article","isPartOf":{"@id":"http:\/\/www.pirhome.com\/?p=1007"},"author":{"name":"admin","@id":"http:\/\/www.pirhome.com\/#\/schema\/person\/1ef19528806471fe6dab5630c9b93f15"},"headline":"PIR Sensor Hold Time and Block Time Explained","datePublished":"2026-02-19T07:00:00+00:00","dateModified":"2026-02-19T13:35:33+00:00","mainEntityOfPage":{"@id":"http:\/\/www.pirhome.com\/?p=1007"},"wordCount":447,"commentCount":0,"publisher":{"@id":"http:\/\/www.pirhome.com\/#organization"},"articleSection":["Reference"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["http:\/\/www.pirhome.com\/?p=1007#respond"]}]},{"@type":"WebPage","@id":"http:\/\/www.pirhome.com\/?p=1007","url":"http:\/\/www.pirhome.com\/?p=1007","name":"PIR Sensor Hold Time and Block Time Explained - PIRHOME","isPartOf":{"@id":"http:\/\/www.pirhome.com\/#website"},"datePublished":"2026-02-19T07:00:00+00:00","dateModified":"2026-02-19T13:35:33+00:00","breadcrumb":{"@id":"http:\/\/www.pirhome.com\/?p=1007#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["http:\/\/www.pirhome.com\/?p=1007"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/www.pirhome.com\/?p=1007#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"http:\/\/www.pirhome.com\/"},{"@type":"ListItem","position":2,"name":"PIR Sensor Hold Time and Block Time Explained"}]},{"@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":"https:\/\/www.pirhome.com\/wp-content\/uploads\/2026\/02\/cropped-\u5fae\u4fe1\u56fe\u7247_2026-02-19_222409_472.jpg","contentUrl":"https:\/\/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\/1ef19528806471fe6dab5630c9b93f15","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","caption":"admin"},"url":"https:\/\/www.pirhome.com\/?author=2"}]}},"_links":{"self":[{"href":"https:\/\/www.pirhome.com\/index.php?rest_route=\/wp\/v2\/posts\/1007","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.pirhome.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.pirhome.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.pirhome.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.pirhome.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1007"}],"version-history":[{"count":2,"href":"https:\/\/www.pirhome.com\/index.php?rest_route=\/wp\/v2\/posts\/1007\/revisions"}],"predecessor-version":[{"id":3041,"href":"https:\/\/www.pirhome.com\/index.php?rest_route=\/wp\/v2\/posts\/1007\/revisions\/3041"}],"wp:attachment":[{"href":"https:\/\/www.pirhome.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1007"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.pirhome.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1007"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.pirhome.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1007"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}