Adding the device

Tap add a device, and select Motion Sensor from the dropdown list.

HCSR501 01

For now there is only the HCSR501 device available, so select that.

HCSR501 02

Now configure the WiringPi pin it’s plugged into, it’s name, and the polling interval.

HCSR501 03

You now have the motion sensor setup!

HCSR501 04

It will display True or False if there is motion or not within the interval. Note that it will take some time to initialize so you may see — as it has not reported any data yet.