Firmware Development And Applications Of A Multi-Sensor Bluetooth Low Energy Peripheral