Wireless motion detector based on Bluetooth Low Energy and PIR sensor