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
Module designed for the XIAO development platform. It acts as an advanced human presence sensor, using FMCW technology to detect human targets in a specific space. The module offers a maximum detection distance of up to 5 meters and a wide detection angle of ±60°. Seeed Studio 101010001
No product available!
A digital shock sensor that detects hand shake. The spring-type vibration switch allows you to output pulses when the user shakes once in a certain direction. DFRobot SEN0289
The RCWL-0516 microwave motion sensor module uses microwave technology to detect motion through obstacles, offering high sensitivity and a wide detection range. It is ideal for use in security systems, home automation, and electronics and robotics projects. RCWL-0516
No product available!
A small module with a GY-PAJ7620U2 gesture detection sensor. Can recognize 9 gestures. Communication via the I2C interface.
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
Gravity: 360 Degree Hall Angle Sensor is a rotation angle sensor measuring a value in the range of 0-360 ° with an analogue output, powered by 5V. DFRobot SEN0221
Module with PIR S16-L221D motion sensor. The board is equipped with a Grove connector and communicates via a digital interface. Seeed Studio 101020617
A sensor for measuring the wind speed. It has a built-in Hall sensor and enables measurements in the range from 0 to 32.4 m/s. DFRobot SEN0483
PIR motion sensor module for Arduino and Raspberry Pi. DFRobot SEN0018
Occupancy sensor based on 24 GHz millimeter wave technology with FMCW, enabling precise detection of people, measuring distances up to 25 m and movement speed. Thanks to high resistance to environmental interference, it works reliably in conditions such as dust, light or temperature changes, outperforming traditional PIR and ultrasonic sensors. Compact size and installation flexibility make it perfect for intelligent lighting, security systems and building automation. DFRobot SEN0609
Module with a PIR motion sensor. It allows you to detect movement at a distance of up to 8 meters with a viewing angle of 60°. DFRobot SEN0522
Module with PIR S16-L221D motion sensor. The board is equipped with a Grove connector and communicates via a digital interface. Seeed Studio 101020353
No product available!
PIR infrared sensor. Reacts to the change of infrared radiation. Range up to 7m.
Module with a motion sensor that uses the Doppler effect to detect moving objects using microwaves. It is powered with the voltage of 5 V and has a digital output (Gravity connector). DFRobot SEN0192
The module is based on the Acconeer XM125 radar, which uses 60 GHz radar technology, offering distance measurement up to 20 meters and recognition of objects and their movement speed. The sensor is characterized by low power consumption, making it ideal for battery-powered devices, and also allows for various detection modes, such as level measurement or human presence. Supported by the Arduino library and the Acconeer Exploration Tool, the module provides support for monitoring, debugging and configuration, offering a wide range of applications from smart homes to advanced robotics and security systems. SParkFun SEN-24540
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