KS0335 Keyestudio PIR Motion Sensor 3PCS

From Keyestudio Wiki
Jump to: navigation, search
Keyestudio PIR Motion Sensor 3PCS


The Pyroelectric infrared motion sensor can detect infrared signals from a moving person or moving animal, and output switching signals. It can be applied to a variety of occasions to detect the movement of human body. Conventional pyroelectric infrared sensors are much more bigger, with complex circuit and lower reliability.
Now we launch this new pyroelectric infrared motion sensor, specially designed for Arduino. This sensor integrates an integrated digital pyroelectric infrared sensor, and the connection pins. It features higher reliability, lower power consumption and simpler peripheral circuit.


  • smaller size and light weight
  • higher reliability
  • lower power consumption
  • simpler peripheral circuit


  • Input Voltage: 3.3 ~ 5V, Maximum6V.
  • 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 (If it is HIGH level, it will be ON)
  • Pin Limit Current: 100mA



Wire it Up

Connect the S pin of module to Digital 3 of UNO board, connect the negative pin to GND port, positive pin to 5V port.

Sample Code

Below is an example code, you can upload it to Arduino IDE.

byte sensorPin = 3;
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!");

Example Result


Done wiring and powered up, upload well the code, if the sensor detects someone moving nearby, D13 indicator on UNO board will light up, and "Somebody is in this area!" is displayed on the serial monitor.
If no movement, D13 indicator on UNO board not lights, and "No one!" is displayed on the serial monitor.

Packaging Included

Keyestudio PIR Motion Sensor * 3PCS


You can click here to download the datasheet

Buy From