Added bluetooth connection

Bluetooth connection to the device
Adapted the read function to either serial or bluetooth connection