{"id":4141,"date":"2026-05-15T09:00:00","date_gmt":"2026-05-15T09:00:00","guid":{"rendered":"https:\/\/pirhome.com\/?p=3926"},"modified":"2026-05-15T09:00:00","modified_gmt":"2026-05-15T09:00:00","slug":"pir-laundry-room-reminder-2","status":"publish","type":"post","link":"https:\/\/www.pirhome.com\/?p=4141","title":{"rendered":"PIR Sensor for Laundry Room Reminder"},"content":{"rendered":"<h2>Project Overview<\/h2>\n<p>This project creates a smart laundry reminder system that detects when you enter the laundry room and reminds you if there is a load waiting to be transferred from washer to dryer or from dryer to basket. It is perfect for busy households where laundry often gets forgotten.<\/p>\n<p><strong>Difficulty:<\/strong> Intermediate<br \/>\n<strong>Estimated time:<\/strong> 2-3 hours<br \/>\n<strong>Estimated cost:<\/strong> $25-35<\/p>\n<h2>How It Works<\/h2>\n<p>A PIR sensor detects when someone enters the laundry room. The system checks the state of the washer and dryer (using vibration sensors) and knows if there is a completed load waiting. If laundry needs attention, it plays a voice reminder through a speaker.<\/p>\n<h2>Materials Needed<\/h2>\n<ul>\n<li>ESP32 (1)<\/li>\n<li>HC-SR501 PIR sensor (1)<\/li>\n<li>SW-420 vibration sensors for washer and dryer (2)<\/li>\n<li>DFPlayer Mini MP3 module (1)<\/li>\n<li>MicroSD card with voice reminders<\/li>\n<li>Small speaker (3W)<\/li>\n<li>OLED display (128&#215;64, I2C) optional<\/li>\n<li>LEDs for status indication<\/li>\n<li>220\u03a9 resistors<\/li>\n<li>Jumper wires<\/li>\n<li>Power supply (5V 2A)<\/li>\n<\/ul>\n<h2>Circuit Diagram<\/h2>\n<h3>Connection Table<\/h3>\n<table border=\"1\">\n<thead>\n<th>Component<\/th>\n<th>Pin<\/th>\n<th>ESP32 Pin<\/th>\n<\/thead>\n<tbody>\n<th>PIR Sensor<\/th>\n<p> OUT<\/th>\n<p> GPIO 4<\/th>\n<th>Washer Vibration<\/th>\n<p> OUT<\/th>\n<p> GPIO 5<\/th>\n<th>Dryer Vibration<\/th>\n<p> OUT<\/th>\n<p> GPIO 6<\/th>\n<th>DFPlayer Mini TX<\/th>\n<p> &#8211;<\/th>\n<p> GPIO 16<\/th>\n<th>DFPlayer Mini RX<\/th>\n<p> &#8211;<\/th>\n<p> GPIO 17<\/th>\n<th>OLED SDA<\/th>\n<p> &#8211;<\/th>\n<p> GPIO 21<\/th>\n<th>OLED SCL<\/th>\n<p> &#8211;<\/th>\n<p> GPIO 22<\/th>\n<th>Red LED (Washer)<\/th>\n<p> Anode<\/th>\n<p> GPIO 2<\/th>\n<th>Green LED (Dryer)<\/th>\n<p> Anode<\/th>\n<p> GPIO 15<\/th>\n<\/tbody>\n<p>\u8868<\/p>\n<h2>Arduino Code<\/h2>\n<pre><code>\/\/ Laundry Room Reminder System\n#include &lt;Wire.h&gt;\n#include &lt;Adafruit_SSD1306.h&gt;\n#include &lt;SoftwareSerial.h&gt;\n#include &lt;DFRobotDFPlayerMini.h&gt;\n\n#define SCREEN_WIDTH 128\n#define SCREEN_HEIGHT 64\nAdafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, -1);\n\nSoftwareSerial mySoftwareSerial(16, 17);\nDFRobotDFPlayerMini myDFPlayer;\n\nconst int pirPin = 4;\nconst int washerSensorPin = 5;\nconst int dryerSensorPin = 6;\nconst int redLedPin = 2;\nconst int greenLedPin = 15;\n\nbool washerRunning = false;\nbool dryerRunning = false;\nbool washerDone = false;\nbool dryerDone = false;\nunsigned long washerStopTime = 0;\nunsigned long dryerStopTime = 0;\nunsigned long lastReminderTime = 0;\nconst unsigned long reminderCooldown = 1800000;\n\nvoid setup() {\n  Serial.begin(115200);\n  \n  pinMode(pirPin, INPUT);\n  pinMode(washerSensorPin, INPUT);\n  pinMode(dryerSensorPin, INPUT);\n  pinMode(redLedPin, OUTPUT);\n  pinMode(greenLedPin, OUTPUT);\n  \n  digitalWrite(redLedPin, LOW);\n  digitalWrite(greenLedPin, LOW);\n  \n  display.begin(SSD1306_SWITCHCAPVCC, 0x3C);\n  display.clearDisplay();\n  display.setTextSize(1);\n  display.setTextColor(SSD1306_WHITE);\n  \n  mySoftwareSerial.begin(9600);\n  myDFPlayer.begin(mySoftwareSerial);\n  myDFPlayer.volume(25);\n  \n  displayMessage(\"Laundry Monitor\", \"Ready\");\n  delay(30000);\n}\n\nvoid displayMessage(String line1, String line2) {\n  display.clearDisplay();\n  display.setCursor(0, 0);\n  display.println(line1);\n  display.setCursor(0, 20);\n  display.println(line2);\n  display.display();\n}\n\nvoid checkVibrationSensors() {\n  bool washerVibration = digitalRead(washerSensorPin) == HIGH;\n  if (washerVibration && !washerRunning) {\n    washerRunning = true;\n    washerDone = false;\n  }\n  if (!washerVibration && washerRunning) {\n    washerRunning = false;\n    washerStopTime = millis();\n    washerDone = true;\n    digitalWrite(redLedPin, HIGH);\n  }\n  \n  bool dryerVibration = digitalRead(dryerSensorPin) == HIGH;\n  if (dryerVibration && !dryerRunning) {\n    dryerRunning = true;\n    dryerDone = false;\n  }\n  if (!dryerVibration && dryerRunning) {\n    dryerRunning = false;\n    dryerStopTime = millis();\n    dryerDone = true;\n    digitalWrite(greenLedPin, HIGH);\n  }\n  \n  if (washerDone && (millis() - washerStopTime > 3600000)) {\n    washerDone = false;\n    digitalWrite(redLedPin, LOW);\n  }\n  if (dryerDone && (millis() - dryerStopTime > 3600000)) {\n    dryerDone = false;\n    digitalWrite(greenLedPin, LOW);\n  }\n}\n\nvoid playReminder() {\n  if (washerDone && dryerDone) {\n    myDFPlayer.play(1);\n    displayMessage(\"Reminder\", \"Both loads done\");\n  } else if (washerDone) {\n    myDFPlayer.play(2);\n    displayMessage(\"Reminder\", \"Move washer load\");\n  } else if (dryerDone) {\n    myDFPlayer.play(3);\n    displayMessage(\"Reminder\", \"Take out clothes\");\n  }\n}\n\nvoid loop() {\n  checkVibrationSensors();\n  \n  bool motion = digitalRead(pirPin) == HIGH;\n  \n  if (motion && (washerDone || dryerDone) && (millis() - lastReminderTime > reminderCooldown)) {\n    lastReminderTime = millis();\n    playReminder();\n  }\n  \n  if (!motion) {\n    String status1 = \"Washer: \";\n    status1 += washerRunning ? \"Running\" : (washerDone ? \"DONE!\" : \"Idle\");\n    String status2 = \"Dryer: \";\n    status2 += dryerRunning ? \"Running\" : (dryerDone ? \"DONE!\" : \"Idle\");\n    displayMessage(status1, status2);\n  }\n  \n  delay(100);\n}\n<\/code><\/pre>\n<h2>Installation Steps<\/h2>\n<ol>\n<li>Mount vibration sensors on washer and dryer using magnets<\/li>\n<li>Position PIR sensor at doorway of laundry room at 2m height<\/li>\n<li>Mount speaker where reminder can be heard clearly<\/li>\n<li>Assemble electronics in enclosure<\/li>\n<li>Run washer and dryer cycles to test detection<\/li>\n<li>Adjust vibration sensor sensitivity if needed<\/li>\n<\/ol>\n<h2>Project Extensions<\/h2>\n<ul>\n<li>Add Wi-Fi notifications to phone<\/li>\n<li>Add Google Home integration for voice announcements<\/li>\n<li>Add LED strip to show status at a glance<\/li>\n<li>Log laundry cycles to track usage<\/li>\n<li>Add remote monitoring via web interface<\/li>\n<\/ul>\n<h2>Conclusion<\/h2>\n<p>This laundry reminder system eliminates forgotten loads and makes laundry day more efficient with voice reminders.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Project Overview This project creates a smart laundry reminder system that detects when you enter the laundry room and reminds you if there is a load waiting to be transferred from washer to dryer or from dryer to basket. It is perfect for busy households where laundry often gets forgotten. Difficulty: Intermediate Estimated time: 2-3 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"class_list":["post-4141","post","type-post","status-publish","format-standard","hentry","category-projects"],"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 Laundry Room Reminder - 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=4141\" \/>\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 Laundry Room Reminder - PIRHOME\" \/>\r\n<meta property=\"og:description\" content=\"Project Overview This project creates a smart laundry reminder system that detects when you enter the laundry room and reminds you if there is a load waiting to be transferred from washer to dryer or from dryer to basket. It is perfect for busy households where laundry often gets forgotten. Difficulty: Intermediate Estimated time: 2-3 [&hellip;]\" \/>\r\n<meta property=\"og:url\" content=\"http:\/\/www.pirhome.com\/?p=4141\" \/>\r\n<meta property=\"og:site_name\" content=\"PIRHOME\" \/>\r\n<meta property=\"article:published_time\" content=\"2026-05-15T09: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=\"3 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=4141#article\",\"isPartOf\":{\"@id\":\"http:\\\/\\\/www.pirhome.com\\\/?p=4141\"},\"author\":{\"name\":\"nic@nicsky.com\",\"@id\":\"http:\\\/\\\/www.pirhome.com\\\/#\\\/schema\\\/person\\\/41049b5236f9c77c9314997d070db3e3\"},\"headline\":\"PIR Sensor for Laundry Room Reminder\",\"datePublished\":\"2026-05-15T09:00:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\\\/\\\/www.pirhome.com\\\/?p=4141\"},\"wordCount\":304,\"commentCount\":0,\"publisher\":{\"@id\":\"http:\\\/\\\/www.pirhome.com\\\/#organization\"},\"articleSection\":[\"Projects\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"http:\\\/\\\/www.pirhome.com\\\/?p=4141#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"http:\\\/\\\/www.pirhome.com\\\/?p=4141\",\"url\":\"http:\\\/\\\/www.pirhome.com\\\/?p=4141\",\"name\":\"PIR Sensor for Laundry Room Reminder - PIRHOME\",\"isPartOf\":{\"@id\":\"http:\\\/\\\/www.pirhome.com\\\/#website\"},\"datePublished\":\"2026-05-15T09:00:00+00:00\",\"breadcrumb\":{\"@id\":\"http:\\\/\\\/www.pirhome.com\\\/?p=4141#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\\\/\\\/www.pirhome.com\\\/?p=4141\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\\\/\\\/www.pirhome.com\\\/?p=4141#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"http:\\\/\\\/www.pirhome.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"PIR Sensor for Laundry Room Reminder\"}]},{\"@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 Sensor for Laundry Room Reminder - 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=4141","og_locale":"en_US","og_type":"article","og_title":"PIR Sensor for Laundry Room Reminder - PIRHOME","og_description":"Project Overview This project creates a smart laundry reminder system that detects when you enter the laundry room and reminds you if there is a load waiting to be transferred from washer to dryer or from dryer to basket. It is perfect for busy households where laundry often gets forgotten. Difficulty: Intermediate Estimated time: 2-3 [&hellip;]","og_url":"http:\/\/www.pirhome.com\/?p=4141","og_site_name":"PIRHOME","article_published_time":"2026-05-15T09:00:00+00:00","author":"nic@nicsky.com","twitter_card":"summary_large_image","twitter_misc":{"Written by":"nic@nicsky.com","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"http:\/\/www.pirhome.com\/?p=4141#article","isPartOf":{"@id":"http:\/\/www.pirhome.com\/?p=4141"},"author":{"name":"nic@nicsky.com","@id":"http:\/\/www.pirhome.com\/#\/schema\/person\/41049b5236f9c77c9314997d070db3e3"},"headline":"PIR Sensor for Laundry Room Reminder","datePublished":"2026-05-15T09:00:00+00:00","mainEntityOfPage":{"@id":"http:\/\/www.pirhome.com\/?p=4141"},"wordCount":304,"commentCount":0,"publisher":{"@id":"http:\/\/www.pirhome.com\/#organization"},"articleSection":["Projects"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["http:\/\/www.pirhome.com\/?p=4141#respond"]}]},{"@type":"WebPage","@id":"http:\/\/www.pirhome.com\/?p=4141","url":"http:\/\/www.pirhome.com\/?p=4141","name":"PIR Sensor for Laundry Room Reminder - PIRHOME","isPartOf":{"@id":"http:\/\/www.pirhome.com\/#website"},"datePublished":"2026-05-15T09:00:00+00:00","breadcrumb":{"@id":"http:\/\/www.pirhome.com\/?p=4141#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["http:\/\/www.pirhome.com\/?p=4141"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/www.pirhome.com\/?p=4141#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"http:\/\/www.pirhome.com\/"},{"@type":"ListItem","position":2,"name":"PIR Sensor for Laundry Room Reminder"}]},{"@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\/4141","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=4141"}],"version-history":[{"count":1,"href":"https:\/\/www.pirhome.com\/index.php?rest_route=\/wp\/v2\/posts\/4141\/revisions"}],"predecessor-version":[{"id":4665,"href":"https:\/\/www.pirhome.com\/index.php?rest_route=\/wp\/v2\/posts\/4141\/revisions\/4665"}],"wp:attachment":[{"href":"https:\/\/www.pirhome.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4141"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.pirhome.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4141"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.pirhome.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4141"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}