An occupancy tracking sensor using Bluetooth Low Energy