STEP 2: Let's test the current temperature with our micro:bit!

  • In SUBJECT, go to and drag the blue block Temperature to the bottom of your program.
  • Change the variable name to the left of the = sign from temp to data.
  • Click Run. You'll see your micro:bit say hello. In the next activity, we'll output the temperature.
  • Then click Submit and Next to move on.

To navigate the page using the TAB key, first press ESC to exit the code editor.

microbit = codesters.Microbit() microbit.show_string("hello")
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)