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
No product available!
A small module with a PAJ7620U2 gesture detection sensor. Can recognize up to 13 gestures. Communication via the Gravity I2C interface. DFRobot SEN0315
No product available!
A modern module that enables gesture control and detects the presence of people, ensuring privacy and fast offline interactions. Equipped with a camera and an AI processor, the sensor recognizes 5 hand gestures and detects up to 10 faces within a range of 3 meters, supporting I2C and UART communication, making it an ideal solution for IoT, smart homes and touchless systems. DFRobot SEN0626
A 24 GHz FMCW radar with Wi-Fi 802.11b/g/n and Bluetooth 5.0 BLE support, enabling precise detection of motion and human presence. Equipped with an integrated detection algorithm and a RISC processor with SPI, UART, I²C, PWM, and GPIO interfaces, it provides flexible configuration and reliable communication in IoT systems. With a wide operating temperature range (-40°C to +85°C), a built-in radar antenna, and WPA3 support, the module is ideal for smart homes, building automation, and security systems.
No product available!
A set for building a weather station equipped with a rainfall sensor and a wind speed and direction meter. SparkFun SEN-15901
PIR motion sensor module for Arduino and Raspberry Pi. DFRobot SEN0018
Czujnik pasywny czujnika (PIR) firmy Panasonic, który jest wykrywany pod kątem detekcji. Oferuje cyfrowy sygnał wyjściowy w 32 strefach na odległość detekcji do 5 m i detekcji 90° x 90°. SparkFun COM-23946
No product available!
The module with the BS312 PIR sensor, which allows motion detection at a distance from 3.2 to 12 m. The board is equipped with a Grove connector and communicates via a digital interface. Seeed Studio 101020793
Module with PIR EKMC4607112K motion sensor, power consumption in standby mode up to 170 uA. SparkFun SEN-17372
Module with a human presence and movement sensor designed based on the STHS34PF80 infrared sensor. Enables monitoring of radiation and ambient temperature within an 80° field of view. The sensor can precisely detect movement and presence within a range of 4 m. It uses the I2C or SPI interface for communication and has built-in Qwiic connectors. SparkFun SEN-23253
A small module with a GY-PAJ7620U2 gesture detection sensor. Can recognize 9 gestures. Communication via the I2C interface.
HuskyLens is an easy-to-use AI vision sensor. It is equipped with many functions such as face recognition, object tracking, object recognition, line tracking, color recognition and tag recognition (QR codes).
The GR10-30 sensor module, which can recognise up to 12 user gestures from a distance of up to 30 cm. It supports communication via both UART and I2C interfaces. DFRobot SEN0543
Wind speed sensor 0-70 m/s made of durable polycarbonate, offers high accuracy and fast response time. It is equipped with RS485 interface. Suitable for agricultural, meteorological and industrial applications. The set includes a sensor, cable and mounting kit.
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
No product available!
Air speed sensor module based on the FS3000-1005 chip. The board is equipped with Qwiic connectors. SparkFun SEN-18377
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