Update code with reading of the bluetooth status