Inputs & Sensors

Inputs & Sensors

1
2
3
4
5
6

Explore how digital systems collect data from human users and physical environments using buttons, keyboards, touchscreens, microcontrollers, and environmental sensors to trigger computational actions.

Level 1

Step 1 (Y1)

Identify and use simple physical input devices (buttons, keys, touchscreens) to trigger digital responses.

Learning objective

Students will identify physical input mechanisms (buttons, keys, touch surfaces) and explain how pressing an input triggers an instant digital response.

Let's Go!

Step media

Learn

An input is how humans give instructions or data to a computer. When you press a keyboard key, tap a touchscreen, or click a mouse button, you create an input signal that tells the device what to do. In computing, digital devices respond to human physical inputs. As you explore the interactive Keyboard Mouse Simulator below, focus on how to explain that pressing a physical button sends an input signal to the computer.

Interactive Simulator Sandbox
Curriculum:Step 1 โ€ข Bronze Tier
๐Ÿ–ฑ๏ธ
Step 1 โ€ข Bronze (Level 1): Mouse Movement & Left-Click Accuracy

Hover over the interactive target and left-click to burst the floating bubble. Pop 3 bubbles to complete!

๐ŸŽฏ Click Me!
Bubbles Popped: 0 / 3
Q
W
E
R
T
Y
U
I
O
P
A
S
D
F
G
H
J
K
L
Enter โ†ต
Shift โ‡ง
Z
X
C
V
B
N
M
โŒซ Del
Tab โ‡ฅ
Spacebar

Apply Simulator Skills โ€ข Try it yourself

Interactive Input Hunt

๐Ÿ”„Direct Simulator Transfer: Step 1 Tasks 1, 2 & 3

Now that you've practiced the virtual mechanics in the simulator above, apply those exact skills in your real computer environment:

๐ŸŒŸ Student Project GuideSuccess Criteria & WAGOLL (What A Good One Looks Like)โ–พ

๐ŸŽฏ Task Success Criteria (Rubric)

Foundation

Identifies a button or key on a device.

Developing

Presses specific buttons or keys to trigger intended digital actions.

Secure (Goal)

Explains that pressing a physical button sends an input signal to the computer.

Mastery

Compares different input methods (mouse click vs touchscreen tap vs keyboard press) for controlling simple software.

๐Ÿ‘€ What A Good One Looks Like (WAGOLL)

๐Ÿ“
Save to Your Website Portfolio:

When you finish creating your project in your software, copy the share link or take a screenshot and publish it onto your student portfolio website!

Reflect

๐ŸŽฏ

Self-Assessment & Reflection

Which physical input do you find easiest to use when playing a game or opening an app?

๐ŸŸขSecure Level

Explains that pressing a physical button sends an input signal to the computer.

Learning check

Learning Check

What is a computer input?

Select the correct definition below.

Answer correctly to unlock the next level.

Great job! Inputs provide data and signals to computers.Not quite. Think about how you give instructions to a device.
Teacher setup, curriculum links and progress descriptors

Spark support

Routine: See-Think-Wonder

Teacher notes: Facilitate the See-Think-Wonder routine for 2โ€“3 minutes. Encourage students to connect the prompt to Form (Digital devices respond to human physical inputs.).

Achievement pathway

  • Foundation: Identifies a button or key on a device.
  • Developing: Presses specific buttons or keys to trigger intended digital actions.
  • Secure: Explains that pressing a physical button sends an input signal to the computer.
  • Mastering: Compares different input methods (mouse click vs touchscreen tap vs keyboard press) for controlling simple software.

Curriculum links

Curriculum strand: Algorithms and Programming

Outcome: INPT.01.B.1.1 โ€” Identify and use simple physical input devices (buttons, keys, touchscreens) to trigger digital responses.

PYP: Form ยท Digital devices respond to human physical inputs.

Learner profile: Inquirer

Competency tags

  • hardware-interaction
  • input-identification
  • cause-and-effect

Gate support

Accessibility alternative: Students may verbally explain or point to the correct answer for "What is a computer input?" with a teacher or teaching assistant.

Teacher override: allow

Back to top

Locked level

Level 2: Step 2 (Y2)

Complete the previous learning check to unlock this next level.

Level 2

Step 2 (Y2)

Program software scripts to respond to specific keyboard key presses and mouse click coordinates.

Learning objective

Students will program visual block code scripts that respond to arrow keys, spacebar presses, and mouse-pointer coordinates.

Let's Go!

Step media

Learn

Computers continuously check for user input events. In block coding, 'When Key Pressed' or 'When Sprite Clicked' blocks act as listeners that run your code only when the matching input occurs. In computing, interactive software relies on structured user input events. As you explore the interactive Microcontroller Simulator below, focus on how to program scripts that combine mouse position tracking with click events.

Interactive Simulator Sandbox
Physical Computing:Step 2 โ€ข Bronze Tier
๐Ÿค–
Step 1 โ€ข Bronze (Level 1): Hardware Recognition & Architecture

Identify the physical hardware parts of the microcontroller: LED matrix, processor, edge pins, and buttons.

In Progress
๐Ÿ“ก RF
0
1
2
3V
GND
๐Ÿ”ŠBuzzer:Silent
โš™๏ธActuator:Centered (90ยฐ)
๐Ÿ“กRadio Packet:Ch: 1 (Idle)
Target: Click the LEDs to draw an icon or trigger hardware inputs.
โšก
GPIO Logic Voltage3.3 V LogicEdge pin logic level reference.
ใ€ฐ๏ธ
PWM Duty Cycle50.0% (1.5ms)Servo Pulse Width Modulation.
๐Ÿ›ก๏ธ
Circuit SafetySafe / NormalZero short circuits between 3V and GND.
๐Ÿ“ป
RF 2.4GHz BandConnectedBroadcast packet telemetry stream.
Sensor Raw ADC & I2C Telemetry10-Bit ADC
Sensor InputBus TypeRaw DigitalConverted Unit
โ˜€๏ธ Photocell (Light)Internal Matrix12850% Lux
๐ŸŒก๏ธ Thermistor (Temp)I2C Subsystem49024ยฐC
๐Ÿ“ณ Accelerometer (X,Y,Z)LSM303AGR I2C(0, 0, 1024)1.0g Flat
๐Ÿ”Œ GPIO Pin 0Edge Connector00.0V (Low)
Oscilloscope Signal Waveform50 Hz PWM
CH1: GPIO Pin 0 (PWM Servo) | 20ms/div | 3.3V pk-pk

Apply Simulator Skills โ€ข Try it yourself

Build an Input Controller

๐Ÿ”„Direct Simulator Transfer: Step 2 Tasks 4, 5 & 6

Now that you've practiced the virtual mechanics in the simulator above, apply those exact skills in your real computer environment:

๐ŸŒŸ Student Project GuideSuccess Criteria & WAGOLL (What A Good One Looks Like)โ–พ

๐ŸŽฏ Task Success Criteria (Rubric)

Foundation

Attaches a green flag event hat block to a sprite script.

Developing

Uses arrow key event blocks to move a sprite up, down, left, and right.

Secure (Goal)

Programs scripts that combine mouse position tracking with click events.

Mastery

Builds an interactive sketcher game where sprite movement dynamically follows the mouse pointer.

๐Ÿ‘€ What A Good One Looks Like (WAGOLL)

๐Ÿ“
Save to Your Website Portfolio:

When you finish creating your project in your software, copy the share link or take a screenshot and publish it onto your student portfolio website!

Reflect

๐ŸŽฏ

Self-Assessment & Reflection

How would your game feel different if you controlled it with a mouse instead of arrow keys?

๐ŸŸขSecure Level

Programs scripts that combine mouse position tracking with click events.

Learning check

Learning Check

Which block detects when a user presses the spacebar?

Select the correct coding block.

Answer correctly to unlock the next level.

Spot on! Key pressed blocks listen for specific key inputs.Try again! Look for the block that mentions key presses.
Teacher setup, curriculum links and progress descriptors

Spark support

Routine: Think-Pair-Share

Teacher notes: Facilitate the Think-Pair-Share routine for 2โ€“3 minutes. Encourage students to connect the prompt to Function (Interactive software relies on structured user input events.).

Achievement pathway

  • Foundation: Attaches a green flag event hat block to a sprite script.
  • Developing: Uses arrow key event blocks to move a sprite up, down, left, and right.
  • Secure: Programs scripts that combine mouse position tracking with click events.
  • Mastering: Builds an interactive sketcher game where sprite movement dynamically follows the mouse pointer.

Curriculum links

Curriculum strand: Algorithms and Programming

Outcome: INPT.02.B.1.2 โ€” Program software scripts to respond to specific keyboard key presses and mouse click coordinates.

PYP: Function ยท Interactive software relies on structured user input events.

Learner profile: Communicator

Competency tags

  • key-events
  • mouse-tracking
  • interactive-control

Gate support

Accessibility alternative: Students may verbally explain or point to the correct answer for "Which block detects when a user presses the spacebar?" with a teacher or teaching assistant.

Teacher override: allow

Back to top

Locked level

Level 3: Step 3 (Y3)

Complete the previous learning check to unlock this next level.

Level 3

Step 3 (Y3)

Use software sensing blocks to detect sprite collisions, touch colors, and distance to pointer.

Learning objective

Students will use sensing blocks (touching color, touching sprite, distance to pointer) within conditional loops to trigger software events.

Let's Go!

Step media

Learn

Sensing blocks act like the digital senses of your code. They return boolean true/false values (like 'touching wall?') or numerical values (like 'distance to mouse') that your code evaluates continuously inside loops. In computing, digital characters react dynamically when sensing their environment. As you explore the interactive Hardware Simulator below, focus on how to program collision detection where touching a specific color resets a sprite position.

Interactive Simulator Sandbox
Hardware Architecture:Step 3 โ€ข Bronze Tier
๐Ÿ–ฅ๏ธ
Step 1 โ€ข Bronze (Level 1): Hardware Recognition - External Peripherals

Identify physical tech components: point to the display screen, keyboard, mouse, and power button.

In Progress
No Signal
Display (Output)
โป
SSD Bay
Protective Case
ESC
Q
W
E
SPACE
ENTER
Keyboard (Input)
Mouse (Input)
๐Ÿ”Š
Speaker (Output)
Target: Click on the external peripherals to inspect their input/output functions.
๐Ÿง 
CPU Core Frequency3.8 GHz8 Cores / 16 Threads Active
โšก
Motherboard Bus SpeedPCIe 4.0 x1631.5 GB/s Direct CPU Link
๐ŸŒก๏ธ
Thermal Dissipation42ยฐC (Optimal)Fan curve: 1,200 RPM active
โ™ป๏ธ
E-Waste & Modularity9.5 / 10Right-to-Repair modular slots
Data Bus Traffic & Signal PipelineHigh-Speed Bus
โŒจ๏ธ Input (Keyboard)
โฌ‡๏ธ USB Controller Bus
๐Ÿง  CPU (Instruction Fetch & Decode)
โฌ‡๏ธ Memory Bus (DDR5 Dual Channel)
๐Ÿ“ฆ RAM (Workbench Buffer)
โฌ‡๏ธ PCIe x16 Direct Bus
๐ŸŽจ GPU -> ๐Ÿ–ฅ๏ธ HDMI Display Output
Component Specification MatrixHardware Spec
ComponentBus InterfaceBandwidthFunction
CPUAM5 / LGA1700Direct FabricExecutes calculations and OS kernel
RAMDDR5 DIMM51.2 GB/sFast volatile working memory
NVMe SSDM.2 PCIe 4.07,000 MB/sNon-volatile persistent storage
GPUPCIe 4.0 x1631.5 GB/s3D Graphics rasterization & shaders
USB-CType-C 3.2 Gen210 GbpsExternal high-speed data & 100W PD

Apply Simulator Skills โ€ข Try it yourself

Build a Maze Runner

๐Ÿ”„Direct Simulator Transfer: Step 3 Tasks 7, 8 & 9

Now that you've practiced the virtual mechanics in the simulator above, apply those exact skills in your real computer environment:

๐ŸŒŸ Student Project GuideSuccess Criteria & WAGOLL (What A Good One Looks Like)โ–พ

๐ŸŽฏ Task Success Criteria (Rubric)

Foundation

Identifies sensing blocks in the coding menu.

Developing

Inserts a 'touching edge' sensing block into an IF-THEN statement.

Secure (Goal)

Programs collision detection where touching a specific color resets a sprite position.

Mastery

Uses 'distance to mouse-pointer' sensing values to calculate variable speeds or sound volume.

๐Ÿ‘€ What A Good One Looks Like (WAGOLL)

๐Ÿ“
Save to Your Website Portfolio:

When you finish creating your project in your software, copy the share link or take a screenshot and publish it onto your student portfolio website!

Reflect

๐ŸŽฏ

Self-Assessment & Reflection

What happens if your color sensing block detects the wrong shade of color in your maze?

๐ŸŸขSecure Level

Programs collision detection where touching a specific color resets a sprite position.

Learning check

Learning Check

What type of value does the touching [sprite]? sensing block return?

Select the correct data type.

Answer correctly to unlock the next level.

Correct! Touching sensing blocks return Boolean True or False values.Remember, touching is either happening (True) or not happening (False).
Teacher setup, curriculum links and progress descriptors

Spark support

Routine: Connect-Extend-Challenge

Teacher notes: Facilitate the Connect-Extend-Challenge routine for 2โ€“3 minutes. Encourage students to connect the prompt to Connection (Digital characters react dynamically when sensing their environment.).

Achievement pathway

  • Foundation: Identifies sensing blocks in the coding menu.
  • Developing: Inserts a 'touching edge' sensing block into an IF-THEN statement.
  • Secure: Programs collision detection where touching a specific color resets a sprite position.
  • Mastering: Uses 'distance to mouse-pointer' sensing values to calculate variable speeds or sound volume.

Curriculum links

Curriculum strand: Algorithms and Programming

Outcome: INPT.03.B.1.3 โ€” Use software sensing blocks to detect sprite collisions, touch colors, and distance to pointer.

PYP: Connection ยท Digital characters react dynamically when sensing their environment.

Learner profile: Thinker

Competency tags

  • collision-detection
  • color-sensing
  • distance-sensing

Gate support

Accessibility alternative: Students may verbally explain or point to the correct answer for "What type of value does the touching [sprite]? sensing block return?" with a teacher or teaching assistant.

Teacher override: allow

Back to top

Locked level

Level 4: Step 4 (Y4)

Complete the previous learning check to unlock this next level.

Level 4

Step 4 (Y4)

Connect microcontrollers (micro:bit / Makey Makey) and program buttons, tilt sensors, and light sensors.

Learning objective

Students will read and process physical sensor inputs (accelerometer tilt, ambient light, button A/B) on microcontrollers.

Let's Go!

Step media

Learn

Microcontrollers like the BBC micro:bit contain built-in physical sensors: accelerometers detect motion and tilt, light sensors measure brightness, and thermistors measure temperature. They convert physical energy into digital numbers. In computing, external hardware sensors collect real-world physical data for digital systems. As you explore the interactive Microcontroller Simulator below, focus on how to use accelerometer tilt sensor inputs (tilt left/right/up/down) to control game movement.

Interactive Simulator Sandbox
Physical Computing:Step 4 โ€ข Bronze Tier
๐Ÿค–
Step 1 โ€ข Bronze (Level 1): Hardware Recognition & Architecture

Identify the physical hardware parts of the microcontroller: LED matrix, processor, edge pins, and buttons.

In Progress
๐Ÿ“ก RF
0
1
2
3V
GND
๐Ÿ”ŠBuzzer:Silent
โš™๏ธActuator:Centered (90ยฐ)
๐Ÿ“กRadio Packet:Ch: 1 (Idle)
Target: Click the LEDs to draw an icon or trigger hardware inputs.
โšก
GPIO Logic Voltage3.3 V LogicEdge pin logic level reference.
ใ€ฐ๏ธ
PWM Duty Cycle50.0% (1.5ms)Servo Pulse Width Modulation.
๐Ÿ›ก๏ธ
Circuit SafetySafe / NormalZero short circuits between 3V and GND.
๐Ÿ“ป
RF 2.4GHz BandConnectedBroadcast packet telemetry stream.
Sensor Raw ADC & I2C Telemetry10-Bit ADC
Sensor InputBus TypeRaw DigitalConverted Unit
โ˜€๏ธ Photocell (Light)Internal Matrix12850% Lux
๐ŸŒก๏ธ Thermistor (Temp)I2C Subsystem49024ยฐC
๐Ÿ“ณ Accelerometer (X,Y,Z)LSM303AGR I2C(0, 0, 1024)1.0g Flat
๐Ÿ”Œ GPIO Pin 0Edge Connector00.0V (Low)
Oscilloscope Signal Waveform50 Hz PWM
CH1: GPIO Pin 0 (PWM Servo) | 20ms/div | 3.3V pk-pk

Apply Simulator Skills โ€ข Try it yourself

Program a Digital Compass & Alarm

๐Ÿ”„Direct Simulator Transfer: Step 4 Tasks 10, 11 & 12

Now that you've practiced the virtual mechanics in the simulator above, apply those exact skills in your real computer environment:

๐ŸŒŸ Student Project GuideSuccess Criteria & WAGOLL (What A Good One Looks Like)โ–พ

๐ŸŽฏ Task Success Criteria (Rubric)

Foundation

Connects a micro:bit via USB and identifies Button A and Button B.

Developing

Programs micro:bit LED displays to respond when Button A or B is pressed.

Secure (Goal)

Uses accelerometer tilt sensor inputs (tilt left/right/up/down) to control game movement.

Mastery

Constructs a physical nightlight project using ambient light level sensor thresholds.

๐Ÿ‘€ What A Good One Looks Like (WAGOLL)

๐Ÿ“
Save to Your Website Portfolio:

When you finish creating your project in your software, copy the share link or take a screenshot and publish it onto your student portfolio website!

Reflect

๐ŸŽฏ

Self-Assessment & Reflection

How reliable was the tilt sensor compared to pressing a physical button?

๐ŸŸขSecure Level

Uses accelerometer tilt sensor inputs (tilt left/right/up/down) to control game movement.

Learning check

Learning Check

Which sensor on a micro:bit detects when the board is shaken or tilted?

Identify the correct hardware sensor.

Answer correctly to unlock the next level.

Excellent! Accelerometers measure acceleration, tilt, and motion.Not quite. Think about which sensor measures movement and acceleration.
Teacher setup, curriculum links and progress descriptors

Spark support

Routine: I Used to Think... Now I Think...

Teacher notes: Facilitate the I Used to Think... Now I Think... routine for 2โ€“3 minutes. Encourage students to connect the prompt to Responsibility (External hardware sensors collect real-world physical data for digital systems.).

Achievement pathway

  • Foundation: Connects a micro:bit via USB and identifies Button A and Button B.
  • Developing: Programs micro:bit LED displays to respond when Button A or B is pressed.
  • Secure: Uses accelerometer tilt sensor inputs (tilt left/right/up/down) to control game movement.
  • Mastering: Constructs a physical nightlight project using ambient light level sensor thresholds.

Curriculum links

Curriculum strand: Algorithms and Programming

Outcome: INPT.04.B.1.4 โ€” Connect microcontrollers (micro:bit / Makey Makey) and program buttons, tilt sensors, and light sensors.

PYP: Responsibility ยท External hardware sensors collect real-world physical data for digital systems.

Learner profile: Principled

Competency tags

  • microbit
  • accelerometer
  • light-sensor
  • physical-computing

Gate support

Accessibility alternative: Students may verbally explain or point to the correct answer for "Which sensor on a micro:bit detects when the board is shaken or tilted?" with a teacher or teaching assistant.

Teacher override: allow

Back to top

Locked level

Level 5: Step 5 (Y5)

Complete the previous learning check to unlock this next level.

Level 5

Step 5 (Y5)

Calibrate analog environmental sensors (temperature, moisture, sound) and set conditional threshold triggers.

Learning objective

Students will collect continuous analog sensor values (0-1023 / 0-255), calibrate baseline thresholds, and trigger automated outputs.

Let's Go!

Step media

Learn

Unlike digital inputs (which are on or off), analog sensors provide a continuous range of numbers. Programmers define 'threshold values'โ€”specific cut-off numbersโ€”that trigger automated responses when environmental conditions change. In computing, environmental sensors enable automated monitoring and sustainable interventions. As you explore the interactive Microcontroller Simulator below, focus on how to program threshold logic (e.g. IF moisture < 300 THEN turn on water pump motor).

Interactive Simulator Sandbox
Physical Computing:Step 5 โ€ข Bronze Tier
๐Ÿค–
Step 1 โ€ข Bronze (Level 1): Hardware Recognition & Architecture

Identify the physical hardware parts of the microcontroller: LED matrix, processor, edge pins, and buttons.

In Progress
๐Ÿ“ก RF
0
1
2
3V
GND
๐Ÿ”ŠBuzzer:Silent
โš™๏ธActuator:Centered (90ยฐ)
๐Ÿ“กRadio Packet:Ch: 1 (Idle)
Target: Click the LEDs to draw an icon or trigger hardware inputs.
โšก
GPIO Logic Voltage3.3 V LogicEdge pin logic level reference.
ใ€ฐ๏ธ
PWM Duty Cycle50.0% (1.5ms)Servo Pulse Width Modulation.
๐Ÿ›ก๏ธ
Circuit SafetySafe / NormalZero short circuits between 3V and GND.
๐Ÿ“ป
RF 2.4GHz BandConnectedBroadcast packet telemetry stream.
Sensor Raw ADC & I2C Telemetry10-Bit ADC
Sensor InputBus TypeRaw DigitalConverted Unit
โ˜€๏ธ Photocell (Light)Internal Matrix12850% Lux
๐ŸŒก๏ธ Thermistor (Temp)I2C Subsystem49024ยฐC
๐Ÿ“ณ Accelerometer (X,Y,Z)LSM303AGR I2C(0, 0, 1024)1.0g Flat
๐Ÿ”Œ GPIO Pin 0Edge Connector00.0V (Low)
Oscilloscope Signal Waveform50 Hz PWM
CH1: GPIO Pin 0 (PWM Servo) | 20ms/div | 3.3V pk-pk

Apply Simulator Skills โ€ข Try it yourself

Build a Smart Weather Station

๐Ÿ”„Direct Simulator Transfer: Step 5 Tasks 13, 14 & 15

Now that you've practiced the virtual mechanics in the simulator above, apply those exact skills in your real computer environment:

๐ŸŒŸ Student Project GuideSuccess Criteria & WAGOLL (What A Good One Looks Like)โ–พ

๐ŸŽฏ Task Success Criteria (Rubric)

Foundation

Reads live sensor value printouts on a digital screen console.

Developing

Maps raw sensor readings to meaningful units (e.g. sound level decibels, temperature degrees).

Secure (Goal)

Programs threshold logic (e.g. IF moisture < 300 THEN turn on water pump motor).

Mastery

Calibrates dual-sensor automation systems (e.g. smart greenhouse regulating temperature and light).

๐Ÿ‘€ What A Good One Looks Like (WAGOLL)

๐Ÿ“
Save to Your Website Portfolio:

When you finish creating your project in your software, copy the share link or take a screenshot and publish it onto your student portfolio website!

Reflect

๐ŸŽฏ

Self-Assessment & Reflection

Why is it important to calibrate sensor thresholds in different environmental conditions?

๐ŸŸขSecure Level

Programs threshold logic (e.g. IF moisture < 300 THEN turn on water pump motor).

Learning check

Learning Check

What is a 'threshold value' in sensor programming?

Select the correct definition.

Answer correctly to unlock the next level.

Great job! Threshold values mark the cutoff for automated conditional actions.Review how code decides when an analog reading is high or low enough to trigger code.
Teacher setup, curriculum links and progress descriptors

Spark support

Routine: 4 Cs (Connections, Concepts, Changes, Challenges)

Teacher notes: Facilitate the 4 Cs (Connections, Concepts, Changes, Challenges) routine for 2โ€“3 minutes. Encourage students to connect the prompt to Perspective (Environmental sensors enable automated monitoring and sustainable interventions.).

Achievement pathway

  • Foundation: Reads live sensor value printouts on a digital screen console.
  • Developing: Maps raw sensor readings to meaningful units (e.g. sound level decibels, temperature degrees).
  • Secure: Programs threshold logic (e.g. IF moisture < 300 THEN turn on water pump motor).
  • Mastering: Calibrates dual-sensor automation systems (e.g. smart greenhouse regulating temperature and light).

Curriculum links

Curriculum strand: Algorithms and Programming

Outcome: INPT.05.B.1.5 โ€” Calibrate analog environmental sensors (temperature, moisture, sound) and set conditional threshold triggers.

PYP: Perspective ยท Environmental sensors enable automated monitoring and sustainable interventions.

Learner profile: Knowledgeable

Competency tags

  • analog-data
  • sensor-calibration
  • threshold-logic
  • automated-systems

Gate support

Accessibility alternative: Students may verbally explain or point to the correct answer for "What is a 'threshold value' in sensor programming?" with a teacher or teaching assistant.

Teacher override: allow

Back to top

Locked level

Level 6: Step 6 (Y6)

Complete the previous learning check to unlock this next level.

Level 6

Step 6 (Y6)

Design Internet of Things (IoT) systems that log environmental sensor data over time and transmit telemetry.

Learning objective

Students will build IoT data-logging pipelines that record sensor streams at timed intervals, store dataset tables, and analyze trends.

Let's Go!

Step media

Learn

The Internet of Things (IoT) connects physical sensors to cloud networks. Automated sensors gather environmental data continuously, log historical trends, and allow remote monitoring and automated decision-making across global infrastructure. In computing, connected sensor networks transform raw physical environmental data into actionable insights. As you explore the interactive Python Console Simulator below, focus on how to export logged sensor datasets to CSV format and generates trend graphs.

Interactive Simulator Sandbox
Python Curriculum:Step 6 โ€ข Bronze Tier
๐Ÿ
Step 1 โ€ข Bronze (Level 1): Code Typing - The Print Statement

Type print("Hello World!") in the code editor and click โ–ถ Run Code to execute your first Python statement.

In Progress
๐Ÿmain.pyClean
1
Snippets:
Target: Type print("Hello World!") and run your script.
Interactive Python REPL (v3.12.2)
Python 3.12.2 (tags/v3.12.2:5acc80f, Feb 6 2024, 01:22:40) [MSC v.1938 64 bit (AMD64)]
Type "help", "copyright", "credits" or "license" for more information.
>>> Ready to execute scripts.
๐ŸŒฒ
AST Root NodeModuleAbstract Syntax Tree representation.
๐Ÿท๏ธ
Symbol Scope0 IdentifiersGlobal variable memory allocations.
๐Ÿ›ก๏ธ
Linter & PEP 8CleanZero syntax or indentation warnings.
โšก
Complexity & LoopsO(1)Bounded iteration & recursion safety.
Python Abstract Syntax Tree (AST)Valid AST

Type Python code in the IDE to view real-time AST node tree parsing.

Runtime Variable Symbol TableStack Memory
IdentifierTypeValueScope
No active variables in memory. Assign variables (e.g. score = 100) to inspect.

Apply Simulator Skills โ€ข Try it yourself

Design an Environmental IoT Logger

๐Ÿ”„Direct Simulator Transfer: Step 6 Tasks 16, 17 & 18

Now that you've practiced the virtual mechanics in the simulator above, apply those exact skills in your real computer environment:

๐ŸŒŸ Student Project GuideSuccess Criteria & WAGOLL (What A Good One Looks Like)โ–พ

๐ŸŽฏ Task Success Criteria (Rubric)

Foundation

Logs sensor readings manually into a spreadsheet table.

Developing

Programs automated code to sample and log sensor values every 5 seconds.

Secure (Goal)

Exports logged sensor datasets to CSV format and generates trend graphs.

Mastery

Evaluates sensor data accuracy, identifies noise/outliers, and designs automated IoT alert systems.

๐Ÿ‘€ What A Good One Looks Like (WAGOLL)

๐Ÿ“
Save to Your Website Portfolio:

When you finish creating your project in your software, copy the share link or take a screenshot and publish it onto your student portfolio website!

Reflect

๐ŸŽฏ

Self-Assessment & Reflection

What ethical and privacy challenges arise when sensors collect continuous data in public spaces?

๐ŸŸขSecure Level

Exports logged sensor datasets to CSV format and generates trend graphs.

Learning check

Learning Check

What is the primary function of an IoT data logger?

Identify the primary purpose of data logging.

Answer correctly to complete this strand.

Spot on! Data loggers continuously record sensor metrics for telemetry and trend analysis.Recall what IoT loggers do with environmental sensor streams over time.
Teacher setup, curriculum links and progress descriptors

Spark support

Routine: PMI (Plus, Minus, Interesting)

Teacher notes: Facilitate the PMI (Plus, Minus, Interesting) routine for 2โ€“3 minutes. Encourage students to connect the prompt to Reflection (Connected sensor networks transform raw physical environmental data into actionable insights.).

Achievement pathway

  • Foundation: Logs sensor readings manually into a spreadsheet table.
  • Developing: Programs automated code to sample and log sensor values every 5 seconds.
  • Secure: Exports logged sensor datasets to CSV format and generates trend graphs.
  • Mastering: Evaluates sensor data accuracy, identifies noise/outliers, and designs automated IoT alert systems.

Curriculum links

Curriculum strand: Algorithms and Programming

Outcome: INPT.06.B.1.6 โ€” Design Internet of Things (IoT) systems that log environmental sensor data over time and transmit telemetry.

PYP: Reflection ยท Connected sensor networks transform raw physical environmental data into actionable insights.

Learner profile: Reflective

Competency tags

  • iot-systems
  • data-logging
  • telemetry
  • automated-analytics

Gate support

Accessibility alternative: Students may verbally explain or point to the correct answer for "What is the primary function of an IoT data logger?" with a teacher or teaching assistant.

Teacher override: allow

๐ŸŽ’ Students Home โ†’

Install App for Classroom

One-click fullscreen learning for Chromebooks, iPads & PCs

๐Ÿ–ฅ๏ธ
Distraction-FreeFullscreen window without browser tabs or search clutter.
โšก
1-Tap LaunchPin directly to the Chromebook shelf, iPad dock, or Windows taskbar.
๐Ÿ“ถ
Classroom SpeedInstant cached loads for lessons and simulators even on school Wi-Fi.
๐Ÿ”’
Safe & Ad-Free100% free, private, and no app store logins or passwords needed.
  1. 1
    Click the Install button

    In your browser, look at the right end of the top web address bar for the ๐Ÿ’ป Install or โค“ icon.

  2. 2
    Confirm "Install"

    A popup will ask if you want to install "Ed Tech Hub". Click Install.

  3. 3
    Pin to your Shelf

    Right-click (or two-finger tap) the app icon in your Chromebook bottom shelf and select "Pin"!