{"id":4020,"date":"2026-04-07T09:00:00","date_gmt":"2026-04-07T09:00:00","guid":{"rendered":"https:\/\/pirhome.com\/?p=4003"},"modified":"2026-04-07T09:00:00","modified_gmt":"2026-04-07T09:00:00","slug":"pir-sensors-arduino-buyers-guide","status":"publish","type":"post","link":"https:\/\/www.pirhome.com\/?p=4020","title":{"rendered":"PIR Sensors for Arduino Projects: Buyer&#8217;s Guide"},"content":{"rendered":"<h2>Introduction<\/h2>\n<p>With dozens of PIR modules available, choosing the right one for your Arduino project can be confusing. This guide covers the most popular options and when to use each.<\/p>\n<h2>Popular PIR Modules<\/h2>\n<h3>HC-SR501 &#8211; The Classic<\/h3>\n<p><strong>Price:<\/strong> $2-3<br \/>\n<strong>Voltage:<\/strong> 4.5-20V (5V recommended)<br \/>\n<strong>Output:<\/strong> 3.3V digital HIGH<br \/>\n<strong>Standby current:<\/strong> 50-65\u00b5A<br \/>\n<strong>Pros:<\/strong> Cheap, adjustable sensitivity and hold time, works with 5V Arduino<br \/>\n<strong>Cons:<\/strong> Higher power, not 3.3V compatible without level shifting<br \/>\n<strong>Best for:<\/strong> Beginners, USB-powered projects, 5V boards<\/p>\n<h3>AM312 &#8211; Mini Low-Power<\/h3>\n<p><strong>Price:<\/strong> $2-3<br \/>\n<strong>Voltage:<\/strong> 2.7-12V (works at 3.3V)<br \/>\n<strong>Output:<\/strong> 3.0V digital HIGH<br \/>\n<strong>Standby current:<\/strong> 35\u00b5A<br \/>\n<strong>Pros:<\/strong> Small (10\u00d78mm), low power, 3.3V compatible<br \/>\n<strong>Cons:<\/strong> Fixed 2-second hold time, shorter range (3-5m)<br \/>\n<strong>Best for:<\/strong> Battery projects, ESP32\/Raspberry Pi, compact designs<\/p>\n<h3>Panasonic EKMB &#8211; Premium Low Power<\/h3>\n<p><strong>Price:<\/strong> $8-12<br \/>\n<strong>Voltage:<\/strong> 2.3-4.0V<br \/>\n<strong>Output:<\/strong> Open-drain (requires pull-up)<br \/>\n<strong>Standby current:<\/strong> 1-6\u00b5A<br \/>\n<strong>Pros:<\/strong> Ultra-low power, high sensitivity, excellent temperature stability<br \/>\n<strong>Cons:<\/strong> More expensive, requires pull-up resistor<br \/>\n<strong>Best for:<\/strong> Battery projects, professional products<\/p>\n<h2>Comparison Table<\/h2>\n<table border=\"1\">\n<thead>\n<th>Model<\/th>\n<th>Voltage<\/th>\n<th>Standby Current<\/th>\n<th>Range<\/th>\n<th>Size<\/th>\n<\/thead>\n<tbody>\n<th>HC-SR501<\/th>\n<p> 4.5-20V<\/th>\n<p> 50-65\u00b5A<\/th>\n<p> 3-7m<\/th>\n<p> 32\u00d724mm<\/th>\n<th>AM312<\/th>\n<p> 2.7-12V<\/th>\n<p> 35\u00b5A<\/th>\n<p> 3-5m<\/th>\n<p> 10\u00d78mm<\/th>\n<th>Panasonic EKMB<\/th>\n<p> 2.3-4V<\/th>\n<p> 1-6\u00b5A<\/th>\n<p> 5-12m<\/th>\n<p> Various<\/th>\n<\/tbody>\n<p>\u8868<\/p>\n<h2>Power Considerations<\/h2>\n<h3>Battery-Powered Projects<\/h3>\n<ul>\n<li><strong>AM312:<\/strong> 35\u00b5A &#8211; good for 6-12 months on 2xAA<\/li>\n<li><strong>Panasonic EKMB:<\/strong> 1-6\u00b5A &#8211; excellent for 2-4 years<\/li>\n<li><strong>Avoid HC-SR501:<\/strong> 50-65\u00b5A reduces battery life significantly<\/li>\n<\/ul>\n<h3>3.3V Microcontrollers (ESP32, Raspberry Pi Pico)<\/h3>\n<ul>\n<li><strong>AM312:<\/strong> Direct connection (2.7-12V input, 3.0V output)<\/li>\n<li><strong>Panasonic EKMB:<\/strong> Direct with pull-up to 3.3V<\/li>\n<li><strong>HC-SR501:<\/strong> Power at 5V, use voltage divider on output<\/li>\n<\/ul>\n<h2>Sample Code<\/h2>\n<h3>HC-SR501 \/ AM312<\/h3>\n<pre><code>const int pirPin = 2;\nvoid setup() {\n  pinMode(pirPin, INPUT);\n  Serial.begin(9600);\n}\nvoid loop() {\n  if (digitalRead(pirPin) == HIGH) {\n    Serial.println(\"Motion detected!\");\n  }\n  delay(100);\n}\n<\/code><\/pre>\n<h3>Panasonic EKMB (with pull-up)<\/h3>\n<pre><code>const int pirPin = 2;\nvoid setup() {\n  pinMode(pirPin, INPUT_PULLUP);\n  Serial.begin(9600);\n}\nvoid loop() {\n  if (digitalRead(pirPin) == LOW) {  \/\/ Inverted logic\n    Serial.println(\"Motion detected!\");\n  }\n  delay(100);\n}\n<\/code><\/pre>\n<h2>Conclusion<\/h2>\n<p>For most beginners, the HC-SR501 is the best starting point due to its low cost and adjustable settings. For battery-powered projects, the AM312 offers a good balance of size and power consumption. For professional or long-term projects, the Panasonic EKMB series provides superior reliability and ultra-low power.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction With dozens of PIR modules available, choosing the right one for your Arduino project can be confusing. This guide covers the most popular options and when to use each. Popular PIR Modules HC-SR501 &#8211; The Classic Price: $2-3 Voltage: 4.5-20V (5V recommended) Output: 3.3V digital HIGH Standby current: 50-65\u00b5A Pros: Cheap, adjustable sensitivity and [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[],"class_list":["post-4020","post","type-post","status-publish","format-standard","hentry","category-buying-guides"],"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 Sensors for Arduino Projects: Buyer&#039;s Guide - 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=4020\" \/>\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 Sensors for Arduino Projects: Buyer&#039;s Guide - PIRHOME\" \/>\r\n<meta property=\"og:description\" content=\"Introduction With dozens of PIR modules available, choosing the right one for your Arduino project can be confusing. This guide covers the most popular options and when to use each. Popular PIR Modules HC-SR501 &#8211; The Classic Price: $2-3 Voltage: 4.5-20V (5V recommended) Output: 3.3V digital HIGH Standby current: 50-65\u00b5A Pros: Cheap, adjustable sensitivity and [&hellip;]\" \/>\r\n<meta property=\"og:url\" content=\"http:\/\/www.pirhome.com\/?p=4020\" \/>\r\n<meta property=\"og:site_name\" content=\"PIRHOME\" \/>\r\n<meta property=\"article:published_time\" content=\"2026-04-07T09: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\":\"http:\\\/\\\/www.pirhome.com\\\/?p=4020#article\",\"isPartOf\":{\"@id\":\"http:\\\/\\\/www.pirhome.com\\\/?p=4020\"},\"author\":{\"name\":\"nic@nicsky.com\",\"@id\":\"http:\\\/\\\/www.pirhome.com\\\/#\\\/schema\\\/person\\\/41049b5236f9c77c9314997d070db3e3\"},\"headline\":\"PIR Sensors for Arduino Projects: Buyer&#8217;s Guide\",\"datePublished\":\"2026-04-07T09:00:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\\\/\\\/www.pirhome.com\\\/?p=4020\"},\"wordCount\":317,\"commentCount\":0,\"publisher\":{\"@id\":\"http:\\\/\\\/www.pirhome.com\\\/#organization\"},\"articleSection\":[\"Buying Guides\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"http:\\\/\\\/www.pirhome.com\\\/?p=4020#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"http:\\\/\\\/www.pirhome.com\\\/?p=4020\",\"url\":\"http:\\\/\\\/www.pirhome.com\\\/?p=4020\",\"name\":\"PIR Sensors for Arduino Projects: Buyer's Guide - PIRHOME\",\"isPartOf\":{\"@id\":\"http:\\\/\\\/www.pirhome.com\\\/#website\"},\"datePublished\":\"2026-04-07T09:00:00+00:00\",\"breadcrumb\":{\"@id\":\"http:\\\/\\\/www.pirhome.com\\\/?p=4020#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\\\/\\\/www.pirhome.com\\\/?p=4020\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\\\/\\\/www.pirhome.com\\\/?p=4020#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"http:\\\/\\\/www.pirhome.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"PIR Sensors for Arduino Projects: Buyer&#8217;s Guide\"}]},{\"@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\\\/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\":\"https:\\\/\\\/www.pirhome.com\\\/?author=1\"}]}<\/script>\r\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"PIR Sensors for Arduino Projects: Buyer's Guide - 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=4020","og_locale":"en_US","og_type":"article","og_title":"PIR Sensors for Arduino Projects: Buyer's Guide - PIRHOME","og_description":"Introduction With dozens of PIR modules available, choosing the right one for your Arduino project can be confusing. This guide covers the most popular options and when to use each. Popular PIR Modules HC-SR501 &#8211; The Classic Price: $2-3 Voltage: 4.5-20V (5V recommended) Output: 3.3V digital HIGH Standby current: 50-65\u00b5A Pros: Cheap, adjustable sensitivity and [&hellip;]","og_url":"http:\/\/www.pirhome.com\/?p=4020","og_site_name":"PIRHOME","article_published_time":"2026-04-07T09: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":"http:\/\/www.pirhome.com\/?p=4020#article","isPartOf":{"@id":"http:\/\/www.pirhome.com\/?p=4020"},"author":{"name":"nic@nicsky.com","@id":"http:\/\/www.pirhome.com\/#\/schema\/person\/41049b5236f9c77c9314997d070db3e3"},"headline":"PIR Sensors for Arduino Projects: Buyer&#8217;s Guide","datePublished":"2026-04-07T09:00:00+00:00","mainEntityOfPage":{"@id":"http:\/\/www.pirhome.com\/?p=4020"},"wordCount":317,"commentCount":0,"publisher":{"@id":"http:\/\/www.pirhome.com\/#organization"},"articleSection":["Buying Guides"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["http:\/\/www.pirhome.com\/?p=4020#respond"]}]},{"@type":"WebPage","@id":"http:\/\/www.pirhome.com\/?p=4020","url":"http:\/\/www.pirhome.com\/?p=4020","name":"PIR Sensors for Arduino Projects: Buyer's Guide - PIRHOME","isPartOf":{"@id":"http:\/\/www.pirhome.com\/#website"},"datePublished":"2026-04-07T09:00:00+00:00","breadcrumb":{"@id":"http:\/\/www.pirhome.com\/?p=4020#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["http:\/\/www.pirhome.com\/?p=4020"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/www.pirhome.com\/?p=4020#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"http:\/\/www.pirhome.com\/"},{"@type":"ListItem","position":2,"name":"PIR Sensors for Arduino Projects: Buyer&#8217;s Guide"}]},{"@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\/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":"https:\/\/www.pirhome.com\/?author=1"}]}},"_links":{"self":[{"href":"https:\/\/www.pirhome.com\/index.php?rest_route=\/wp\/v2\/posts\/4020","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\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.pirhome.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4020"}],"version-history":[{"count":1,"href":"https:\/\/www.pirhome.com\/index.php?rest_route=\/wp\/v2\/posts\/4020\/revisions"}],"predecessor-version":[{"id":4116,"href":"https:\/\/www.pirhome.com\/index.php?rest_route=\/wp\/v2\/posts\/4020\/revisions\/4116"}],"wp:attachment":[{"href":"https:\/\/www.pirhome.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4020"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.pirhome.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4020"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.pirhome.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4020"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}