Mount Motion Sensors and Electronic Box
From How to Add Smart Bulbs and Motion Automations to Stair Lights · Step 4 of 8 · Video by I Like To Make Stuff

Showing 13:17–14:27 of the source video. Watch the full video with every moment.
What happens in this clip
Use 3D-printed mounts to attach PIR motion sensors to the underside of the handrail, ensuring they can be adjusted to aim at the desired detection zones on the stairs. Route the sensor wires into the wall, joining the LED wires at the bottom of the staircase. Cut a rectangular hole in the wall large enough to house a project box. Drill appropriate holes in the project box to mount the 40A power supply and the Arduino Uno. Carefully manage all wires, feeding them into the box. This centralizes all control and power components, making them accessible for troubleshooting or future modifications.
Goal: Install PIR motion sensors under the handrail using 3D-printed mounts and house all electronic components (power supply, Arduino) in a custom wall-mounted project box.
What's used
Tools
- 3D printer
- 40A power supply
- Arduino Uno (or ESP module)
- Drill
- PIR motion sensors
- Project box
- Screws
About the full video
This project transforms an ordinary carpeted staircase into a smart, interactive lighting system by replacing old carpet with hardwood treads and risers, then integrating motion-sensing LED lights. The system uses an Arduino microcontroller to detect movement via PIR sensors and illuminate specific steps dynamically, enhancing both safety and aesthetic appeal. The project also involves custom fabrication of light bars and meticulous wiring integration to achieve a clean, professional finish.
What's said in this clip
right out so let's go install these things foreign [Music] I've got these little PIR sensors and a 3D printed amount for them to go into that exposes the sensor part and it's got screw holes so I can mount these to the bottom of the handrail and I can adjust the placement so if I need them to aim One Direction to detect motion I can do that the wires are going to run all the way down this thing and go into the wall just like the wires did for the lights and then we'll join all of those up in a box down there with the Arduino so I've got all the wires coming out of this wall and these are coming from the lights and the sensors I cut a hole here the size of a project box so that I can house everything inside this plastic box this will be mounted in there and be flush with the wall but I don't really want to see just this black surface so I cut a piece of Walnut that'll go right on top of it just to dress it up a little bit but the whole idea is to run everything in this box add a power supply and an Arduino so that we can get everything contained in one place just in case there are any problems with the wiring [Music] so this entire project is going to run
Automatically transcribed from the source video.
Step 4 of 8: Mount Motion Sensors
Determine the optimal placement for the motion sensors to detect movement effectively. This is typically at the top and bottom of the stairs, or at intervals along longer staircases. Mount the sensors using the provided adhesive or screws, following the manufacturer's instructions.
Every video in How to Add Smart Bulbs and Motion Automations to Stair Lights
Step 1: Turn Off Power to Stair Lights
- 0:19–0:29 Turn Off Power at the Breaker
- 0:11–0:12 Turn Off Electrical Power
- 0:08–0:15 De-energize Circuit and Verify Safety
Step 2: Remove Existing Stair Light Fixtures
- 6:13–8:13 Remove Old Light Fixture
- 1:28–2:01 Remove Old Light Fixture
- 0:34–0:41 Remove the Existing Light Fixture
Step 3: Install Smart Bulbs
- 0:00–0:01 Install Smart Light Bulb(s)
- 0:32–0:43 Install New Smart LED Bulb
- 0:07–0:09 Install Smart Bulb into Fixture
Step 4: Mount Motion Sensors
- 0:16–0:19 Drill for and Install Motion Sensors
- 3:25–4:32 Install and Wire Motion Sensors
- 13:17–14:27 Mount Motion Sensors and Electronic Box (this video)
Step 5: Connect Smart Bulbs and Sensors to Network
- 0:02–0:03 Connect Smart Bulb(s) to System
- 0:08–0:09 Network Integration & Device Pairing
- 0:44–0:45 Pair with Smart Home System
Step 6: Configure Automation Rules
- 5:33–5:49 Configure Automations in SmartThings 'Smart Lighting' App
- 0:48–0:51 Set Up Automation Routines
- 0:35–1:03 Configure Motion Automation
Step 7: Test the System
- 0:06–0:14 Test and Adjust the System
- 10:04–10:20 Perform Final System Testing and Verification
- 10:04–10:48 Final System Test and Verification
Step 8: Restore Power
- 0:31–0:33 Restore Power to Circuit
- 0:26–0:29 Restore Power to Circuit
- 0:59–1:02 Restore Power
Questions about How to Add Smart Bulbs and Motion Automations to Stair Lights
Do all smart bulbs and motion sensors work together, or do I need specific brands for compatibility?
Not all smart devices are universally compatible, so it's important to check specifications. While devices like Philips WiZ bulbs and Lutron Caseta sensors often integrate well, ensure they can connect to your chosen smart home hub (e.g., Aqara Smart Hub or Amazon Echo Hub) or directly to your Wi-Fi network and a common app. Verify compatibility to ensure seamless automation and control.
Where is the best place to mount the motion sensors for reliable stair lighting automation?
For optimal coverage, mount motion sensors at both the top and bottom of your stairs. Place them in a location that gives them a clear line of sight to people approaching the stairs, typically in a corner or on the wall. Avoid aiming them directly at heat sources or windows to prevent false triggers, ensuring they cover the entire travel path.
What tools are truly essential for this project, beyond the smart devices themselves?
Beyond the smart bulbs and motion sensors, you'll absolutely need a non-contact voltage tester for safety to confirm power is off. A Phillips screwdriver set will be necessary to remove existing light fixtures and potentially mount new hardware. A drill with appropriate bits will also be required for securely mounting the motion sensors to your walls.
What are common troubleshooting steps if my smart bulbs or motion automations aren't working after setup?
First, check your Wi-Fi connection and ensure all smart devices and your hub are powered on and within network range. Next, carefully review your automation rules within your smart home app for any incorrect settings or typos. If issues persist, try restarting your smart home hub and individual devices, or consult the manufacturer's troubleshooting guide for specific device issues.
Is this project genuinely beginner-friendly, and can it realistically be completed in 4 hours?
Yes, this project is rated as beginner-friendly because it primarily involves replacing bulbs, mounting sensors, and configuring software, rather than complex electrical wiring. The 4-hour estimate is realistic for someone with basic DIY experience, assuming your existing light fixtures are standard and your Wi-Fi setup is straightforward. Allow extra time for initial device pairing and fine-tuning automation rules.
How to Add Smart Bulbs and Motion Automations to Stair Lights
This project involves upgrading existing stair lights with smart bulbs and integrating motion sensors to create automated lighting, enhancing safety and convenience.
Read the full guide Browse all guides
Planning this project? Shop Oak Valley Designs.

