Overview: Panasonic PIR Motion Sensor with Arduino

In this post we will learn how to interface Panasonic PIR Motion Sensor with Arduino. PIR (Passive Infrared or Pyroelectric) Motion Sensor from Panasonic has industrial grade, highly reliable and precise and accurate sensor. The other type of Pir Sensor called HC-SR501 or SR602are the cheaper sensor which can’t be used for industrial applications. So we need a highly accurate and best PIR Sensor if we think of designing real-life application project.

The real-life application project includes burglar alarms, access control, automatic lighting, automatic door opening, and many other applications where detection of personnel is required. So let us learn about the features of this Sensor and its Interfacing with Arduino.

Bill of Materials

The following are the components required for learning the Working of Panasonic PIR Motion Sensor with Arduino. All the components can be easily purchased from Amazon. The component purchase link is given as well.

1 Arduino Nano Board 1 Amazon | AliExpress
2 EKMC1603111 Panasonic PIR Motion Sensor 1 AliExpress
3 Connecting Wires 10 Amazon | AliExpress
4 Breadboard 1 Amazon | AliExpress

Panasonic PIR Motion Sensor

PIR Motion Sensor also known as Passive Infrared Sensor or Pyroelectric from Panasonic is an industrial grade, highly reliable, precise and accurate sensor. The model used here is EKMC1603111. The Sensor operates between 3V-6V DC.

The Panasonic EKMC1603111 is a long-distance detection type passive infrared motion sensor within the TO-5 package. This sensor detects a change in infrared which occurs when there’s a movement by an individual or object by the change within the surrounding temperature. There are several conditions to sense targets like the temperature difference between the target and surroundings should be 4°C, movement speed is 1.0m/s and the target size is 700mm x 250mm. EKMC1603111 is especially utilized in lighting, Anti-crime devices, home appliances, commercial equipment and audio and visual devices.

Features & Specifications

1. Enclosed sensing circuits, high S/N ratio
3. Wall Mount Capability
4. Limited Field Of View
5. Optimized To Provide Pet Immunity
6. Available In 1 μA, 2 μA, 6 μA, and 170 μA to accommodate Line Voltage Users And Battery Operated Users
7. One Plug And Play Solution Saves Design Time
8. Standard detection type
9. 82° vertical, 100° horizontal detection angle
10. White lens color
10. 170 μA operating current
11. Long Distance(12 m) Detection range


The Sensor has 3 pins
1. VCC (3V-6V)
2. OUT
3. GND

There is a gold mark on the sensor part. The pin near to the Gold mark is the VCC Pin. The middle pin is the output pin and the third pin is the GND Pin.

How to interface Panasonic PIR Motion Sensor with Arduino

Now, lets learn about the sensor Interfacing with Arduino. The sensor works between 3V-6V. So connect its VCC Pin to 5V/3.3V of Arduino.Connect the GND to GND & its output pin to any of the digital pin of Arduino.

I used digital pin 2 of the Arduino to connect the Sensor. You can just connect 3 wires to the sensor so that it can be easily inserted in the breadboard as shown below.

Source Code/Program

The source code for Interfacing Panasonic PIR Sensor Arduino is given below. You can copy the code and upload it to the Arduino Board.

#define PIR 2
#define PIR_THRESH 12000
void setup() {
  Serial.println("Sensor Initializing.....");
  Serial.println("Setup Completed");
void loop() 
  int duration;
  duration = pulseIn(PIR,HIGH);
    Serial.println("Motion Detected");
    Serial.println("No Motion");

After uploading the code, just place your hand in front of the Sensor, it will detect the motion and display it on the Serial Monitor.