2.7. Motion Activated Welcome Display
| Description | This project uses a PIR Motion Sensor and LCD Display to greet visitors automatically when movement is detected. |
|---|---|
| Use case | This project is connected to real-world uses such as: Motion-activated systems are commonly used in automatic doors, smart lighting systems, and security devices. |
Components (Things You will need)
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
|---|---|---|---|---|---|
Building the circuit
Things Needed:
- Arduino Uno = 1
- Arduino USB cable = 1
- Breadboard = 1
- Jumper Wires
- Motion Sensor
- LCD Display
Mounting the component on the breadboard and wiring the circuit
Step 1: Connect the power supply by connecting the 5V pin on the Arduino Uno to the positive rail on the breadboard and the GND pin to the negative rail.
Step 2: Place the PIR motion sensor on the breadboard.
-
Connect the VCC pin of the PIR motion sensor to the positive power rail on the breadboard where we connected the 5V pin on the Arduino Uno to.
-
connect the GND pin to the negative power rail on the breadboard where we connected the GND pin on the Arduino Uno to.
-
connect the OUT pin to Digital Pin 2 using jumper wires.
Step 3: Place the I2C LCD display on the breadboard.
-
Connect the VCC pin of the I2C LCD display to the positive power rail on the breadboard where we connected the 5V pin on the Arduino Uno to.
-
connect the GND pin to the negative power rail on the breadboard where we connected the GND pin on the Arduino Uno to.
-
Then, connect the SDA pin to A4 and
-
the SCL pin to A5 using jumper wires.

Make sure to connect the Arduino USB cable to the Arduino board.
PROGRAMMING
Step 1: Open your Arduino IDE. See how to set up here: Getting Started.
Step 2: Write the complete program implementing the system logic with appropriate pin definitions, setup configuration, and the main control loop.
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27,16,2);
int pirPin = 2;
void setup() {
pinMode(pirPin, INPUT);
lcd.init();
lcd.backlight();
lcd.print("Waiting...");
}
void loop() {
int motion = digitalRead(pirPin);
if(motion == HIGH){
lcd.clear();
lcd.print("Welcome!");
lcd.setCursor(0,1);
lcd.print("Motion Found");
}
else{
lcd.clear();
lcd.print("Waiting...");
}
delay(500);
}
Step 3: Save your code. See the Getting Started section
Step 4: Select the arduino board and port See the Getting Started section:Selecting Arduino Board Type and Uploading your code.
Step 5: Upload your code. See the Getting Started section:Selecting Arduino Board Type and Uploading your code
CONCLUSION
When no motion is detected by the PIR sensor, the LCD displays "Waiting..." to indicate that the system is in standby mode. When motion is detected, the LCD displays a welcome message, indicating that a person has approached and the system has successfully detected their presence.





