The HC-SR501 PIR motion sensor module is a passive motion detector that responds to changes in infrared radiation in the environment. The PIR motion sensor works by detecting the temperature difference between objects that emit heat and the environment. The sensor is sensitive to the movement of people or animals, making it ideal for applications in alarm systems, lighting automation, or control of electrical devices. It is widely used in projects with microcontrollers, as well as platforms such as Arduino or Raspberry Pi. It can also be used in conjunction with ESP8266, STM32 and AVR systems.
The HC-SR501 PIR motion sensor has a built-in system that detects infrared radiation using a Fresnel lens that focuses the radiation on the detector. The module is equipped with potentiometers that allow you to adjust the duration of the signal after detecting movement and the sensitivity of the sensor, which allows you to adjust the parameters to specific application conditions. Thanks to its small size and low power consumption, this sensor is perfect for projects where energy efficiency and compactness are key.
A PIR sensor (passive infrared sensor) works by detecting infrared radiation emitted by objects with a higher temperature than the ambient temperature, such as people or animals. When an object moves within the range of the detector, the change in the intensity of the radiation is recorded, which generates an output signal. The module generates a high output (3.3 V) when it detects movement, and a low output (0 V) when it does not detect any change. Using the potentiometers, the user can set the time for which the output signal is maintained after detecting movement (from 5 to 200 seconds), and adjust the sensitivity of the sensor.
The HC-SR501 PIR motion sensor module can be easily connected to platforms such as Arduino, Raspberry Pi, STM32 or ESP8266. The module requires a power supply voltage ranging from 5 V to 12 V, which can be supplied from an external source or from the power pin of the development platform. The module's pins are three: power (VCC), ground (GND) and output (OUT). After connecting, the PIR motion sensor is ready to work - just read the output signal from the OUT pin, which will change its state depending on the detected movement.
To connect the sensor to Arduino, you can use the following connection diagram:
In the Arduino code, you can read the state of the OUT pin and control, for example, lighting, relays or other electrical devices based on it. Similarly, you can connect the module to Raspberry Pi or other platforms, using the appropriate power and data reading pins. In the case of Raspberry Pi, the sensor can be used to automatically run system tasks, such as taking photos or turning on an alarm.
Application examples

ZL2AVR (Bascom) and modHC-SR501
Manufacturer BTC Korporacja sp. z o. o. Lwowska 5 05-120 Legionowo Poland sprzedaz@kamami.pl 22 767 36 20
Responsible person BTC Korporacja sp. z o. o. Lwowska 5 05-120 Legionowo Poland sprzedaz@kamami.pl 22 767 36 20
Cables for evaluation boards, set of 10 pcs., red colour
Digital sensor for measuring accurate and drift-free angular displacement. It is constructed from highly durable medical-grade silicone elastomers. It communicates via an I2C interface. SparkFun SEN-15244
No product available!
Module with a PIR motion sensor. It can detect movement up to 5 meters with a detection angle of 120 degrees
Module with PIR sensor HC-SR501. It can detect movement up to 7 meters with a detection angle of 120 degrees
Module with vibration sensor LDT0-028. The board is equipped with a Grove connector and has a digital output. Seeed Studio 101020031
No product available!
Module with a gesture sensor PAJ7620U2, which allows to recognize up to 13 gestures. The board is equipped with a Grove connector and communicates via the I2C interface. Seeed Studio 101020083
No product available!
Advanced 60 GHz radar, capable of detecting human presence, falls, posture and vital signs such as heart rate and breathing – even when motionless. Ceiling-mounted and compatible with platforms such as Arduino or ESP32, it is ideal for healthcare systems, especially for monitoring sleep and the safety of the elderly. DFRobot SEN0623
Module with a PIR motion sensor designed for M5Stack modules. It can detect movement up to 5 meters with a detection angle of 100 degrees. M5Stack U004
Module with STP201M motion sensor with pedometer function. Built on the basis of an accelerometer and MCU, dedicated to sports bands and smartwatches
Module with an optical flow sensor PMW3901. It uses a low resolution camera to detect surface movement. It communicates via the SPI interface. Pimoroni PIM453
No product available!
The MR60BHA2 sensor kit uses 60GHz mmWave technology to reliably detect human presence, as well as human breathing and heartbeat detection. It offers Home Assistant integration thanks to the XIAO ESP32C6 module and pre-installed ESPHome firmware. Equipped with a BH1750 light intensity sensor, RGB LED indicator and the possibility of expanding with Grove sensor modules, it is ideal for monitoring health, safety and home automation. Seeed Studio 114993387
PIR motion sensor module for Arduino and Raspberry Pi. DFRobot SEN0018
This is a simple to use motion sensor. Power it up and wait 1-2 seconds for the sensor to get a snapshot of the still room. This unit works great from 5 to 12V (datasheet shows 12V). You can also install a jumper wire past the 5V regulator on board to make this unit work at 3.3V. Sensor uses 1.6mA@3.3V. SEN-13285
The Gravity Occupancy Sensor uses 24 GHz FMCW radar technology, enabling precise presence detection at a distance of up to 8 meters and movement and distance measurement up to 12 meters. Thanks to its high resistance to environmental interference, it works reliably regardless of light, temperature or dust, effectively detecting both static and dynamic objects. Compatibility with Arduino, ESP32, Raspberry Pi and a simple Gravity interface make it an ideal solution for intelligent lighting, building automation and security systems. DFRobot SEN0610
No product available!
Wind direction sensor with a measuring range up to 60 m/s and 360° ensures high accuracy and fast response time, thanks to the use of low-resistance bearings and precision components. It supports various output signal types, including analog (0–5 V, 4–20 mA) and digital (RS485, LoRa, GPRS, 4G), enabling broad integration in meteorological, agricultural, and industrial systems. The durable polycarbonate construction and IP65 protection rating ensure reliable operation even in harsh environmental conditions.
No product available!
Module with a gesture and touch sensor. It recognizes 7 types of gestures and has 5 touch buttons. It is supplied with a voltage ranging from 3.3 V to 5 V and communicates via UART. DFRobot SEN0285
No product available!
Universal weather station for measuring wind speed and direction, temperature, humidity and atmospheric pressure, compatible with micro:bit, Raspberry Pi, ESP32 and Unihiker controllers. It has 16 MB of internal memory, which allows for 160 days of data storage at a minute sampling rate, and data can be exported via USB Type-C port. The sturdy metal casing with a waterproof protective coating and compatibility with tripods make the station ideal for field atmospheric research and educational projects. DFRobot EDU0157-EN
No product available!
The PIR motion sensor module modHC-SR501 is a universal sensor ideal for detecting the presence of people or animals, compatible with Arduino, Raspberry Pi and home automation systems. modHC-SR501