The Device extension is now deprecated by the MakeCode team as the blocks are not supported on a majority of mobile devices.

If you still want to use the device blocks, you can drag and drop the attached .hex file into the editor at makecode.microbit.org. This program includes the legacy devices extension.