Ks0122 keyestudio EASY plug PIR Motion Sensor

From Keyestudio Wiki
Revision as of 14:38, 27 November 2018 by Keyestudio (talk | contribs) (Buy from)
Jump to: navigation, search
EASY plug Flame Sensor Module


PIR stands for Pyroelectric Infrared (many times, they are also referred as Passive Infrared sensors). This is because their principle of operation is based on the detection of infrared energy emitted by a moving body.
The PIR sensor can detect infrared signals from a moving person or moving animal, outputting switching signals.

One important thing to mention is that when motion is detected, the output will stay high for 2.3 to 3 seconds after the motion stops.
Regarding the power supply, it can work with voltages of both 3.3V and 5V. The device has a detection range of 7 meters and a detection angle of 100º.
Note: this module should be used together with EASY plug control board.


  • Connector: Easy plug
  • Input Voltage: 3.3 ~ 5V, Maximum 6V
  • Working Current: 15uA
  • Working Temperature: -20 ~ 85℃
  • Output Voltage: High 3V, Low 0V
  • Output Delay Time (High Level): about 2.3 to 3 Seconds
  • Detection angle: 100°
  • Detection distance: 7 meters
  • Output Indicator LED (When output HIGH, it will be ON)
  • Pin limit current: 100mA

Technical Details

  • Dimensions: 38mm*20mm*18mm
  • Weight: 5.6g

Connect It Up

Connect the EASY Plug PIR Motion sensor to control board using an RJ11 cable. Then connect the control board to your PC with a USB cable.

Upload the Code

Copy and paste below code to Arduino IDE and upload.

byte sensorPin = 6;
byte indicator = 13;
void setup()
void loop()
byte state = digitalRead(sensorPin);
if(state == 1)Serial.println("Somebody is in this area!");
else if(state == 0)Serial.println("No one!");

What You Should See

Done uploading the code, open the serial monitor and set the baud rate to 9600. If the sensor detects someone moving nearby, you should see the "Somebody is in this area!" is displayed on the monitor. Otherwise, it will display "No one!".


Download the PDF:

Download the Code:

Buy from