Tap add a device, and select Motion Sensor from the dropdown list.
For now there is only the HCSR501 device available, so select that.
Now configure the WiringPi pin it’s plugged into, it’s name, and the polling interval.
You now have the motion sensor setup!
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.