Learning objective

  • To create a real-world program using a sensor, input and a conditional statement.

Success criteria

  • I can use the temperature sensor input on
Lock

This content is for subscribers only. Join for access today.

National curriculum

Computing

Pupils should be taught to:

  • Design,
Lock

This content is for subscribers only. Join for access today.

Before the lesson

Lock

This content is for subscribers only. Join for access today.

Lesson plan

Recap and recall

Explain that the children will talk with a partner to recall what they remember about programming using MakeCode. Display the Presentation: Speak like an expert and arrange the children into pairs. Allow time for them to share their ideas using key vocabulary.

Lock

This content is for subscribers only. Join for access today.

Adaptive teaching

Pupils needing extra support

Should use the Download: Weather checker .hex file or the link: Microsoft MakeCode - Weather checker and remix the code to personalise it (for example, change the temperature and the icons); could re-watch the Pupil Video: Weather checker during programming to reinforce the purpose and sequence of blocks

Pupils working at greater depth

Should add a variable that resets the temperature back to zero and explain how this improves the program’s usefulness; should add more than one condition to display different messages depending on the temperature range; could include an extra condition for a custom message (for example, ‘Wrap up warm!’ between 5–10 °C or ‘Keep hydrated!’ above 25 °C).

Lock

This content is for subscribers only. Join for access today.

Assessing progress and understanding

Pupils with secure understanding indicated by: using the temperature sensor block and

Lock

This content is for subscribers only. Join for access today.

Vocabulary definitions

  • conditional statement

    A rule in code that makes something happen only if a specific condition is true.

  • input

    An action that gives the micro:bit information, such as pressing a button or shaking it.

Lock

This content is for subscribers only. Join for access today.

Our team comprises experienced classroom teachers who love the foundation subjects
Find out more
Kapow logo

Maintained by: Kapow Primary team

_
For copyright reasons, you may not screenshot this page.
Press esc to exit