![header-lesson-02](assets/header-lesson-02.png)

# Using the Microphone

In this section, you will learn to use the sound-sensing capabilities of the micro:bit. 

![microbit-sound](assets/microbit-sound.png)

To display the sound level, we first need to add a string representing the value returned by the sensor. To do so, click on the "Basic" drawer in the Toolbox.

![makecode-sound-01](assets/makecode-sound-01.png)

Select the `show string` block.

![makecode-sound-02](assets/makecode-sound-02.png)

Place the `show string` block in the `forever` block.

![makecode-sound-03](assets/makecode-sound-03.png)

Next you need to get the block that reads the sound level. Click on the "Input" drawer of the Toolbox.

![makecode-sound-04](assets/makecode-sound-04.png)

Scroll down to the section that has the "micro:bit (V2)" blocks.

![makecode-sound-05](assets/makecode-sound-05.png)

Select the `sound level` block.

![makecode-sound-06](assets/makecode-sound-06.png)

Place the `sound level` block in the `forever` block.

![makecode-sound-07](assets/makecode-sound-07.png)

The micro:bit is now ready to be flashed with code. Press the download button to transfer the code to the micro:bit.
