Skip to content

Inputs: Sensing the EnvironmentActivities & Teaching Strategies

Active learning works well for this topic because students physically connect sensors to microcontrollers and test real-time responses, turning abstract concepts into concrete experiences. Hands-on trial and error with circuits and code helps students grasp how inputs trigger outputs, building lasting understanding through direct engagement.

Year 6Computing4 activities25 min45 min

Learning Objectives

  1. 1Analyze how different sensor types, such as light, sound, and touch, translate environmental stimuli into electrical signals for a microcontroller.
  2. 2Classify sensors based on the physical property they detect and their common applications in computing systems.
  3. 3Create a program for a microcontroller that uses a light sensor input to control an LED output based on a specific light threshold.
  4. 4Explain the role of conditional statements (if/then) in programming microcontrollers to respond to sensor data.

Want a complete lesson plan with these objectives? Generate a Mission

45 min·Small Groups

Stations Rotation: Sensor Stations

Prepare three stations with light, sound, and touch sensors wired to microcontrollers. Students predict outputs, write simple if-then code, test responses, and log data. Groups rotate every 10 minutes to compare sensor behaviours.

Prepare & details

Analyze how sensors act as the 'senses' of a computer system.

Facilitation Tip: During Station Rotation, circulate with a multimeter to demonstrate how voltage changes across sensors, reinforcing the connection between physical signals and code values.

Setup: Tables/desks arranged in 4-6 distinct stations around room

Materials: Station instruction cards, Different materials per station, Rotation timer

RememberUnderstandApplyAnalyzeSelf-ManagementRelationship Skills
35 min·Pairs

Pairs Challenge: Light Gate

In pairs, connect a light sensor to control a motor or LED that activates when light breaks. Adjust sensitivity thresholds through code tweaks and test with hands or torches. Pairs present their working gate to the class.

Prepare & details

Differentiate between different types of sensors and their applications.

Facilitation Tip: For the Pairs Challenge, provide stopwatches to time how long the light gate signal stays active, linking duration to programming logic for precise control.

Setup: Groups at tables with access to source materials

Materials: Source material collection, Inquiry cycle worksheet, Question generation protocol, Findings presentation template

AnalyzeEvaluateCreateSelf-ManagementSelf-Awareness
40 min·Small Groups

Whole Class: Sound Monitor

Program sound sensors class-wide to light LEDs at set volume levels, simulating a concert decibel checker. Collect group data on thresholds, then discuss variations in a plenary.

Prepare & details

Construct a program that uses a light sensor to turn on an LED when it gets dark.

Facilitation Tip: In the Whole Class activity, use a decibel meter app to show students how sound levels translate to sensor readings, making the invisible visible.

Setup: Groups at tables with access to source materials

Materials: Source material collection, Inquiry cycle worksheet, Question generation protocol, Findings presentation template

AnalyzeEvaluateCreateSelf-ManagementSelf-Awareness
25 min·Individual

Individual Debug: Touch Toggle

Each student codes a touch sensor to toggle an LED on and off with presses. They debug wiring or code errors independently before sharing fixes.

Prepare & details

Analyze how sensors act as the 'senses' of a computer system.

Facilitation Tip: During Touch Toggle, ask students to press and hold the button for different lengths to observe how timing affects output behavior and code logic.

Setup: Groups at tables with access to source materials

Materials: Source material collection, Inquiry cycle worksheet, Question generation protocol, Findings presentation template

AnalyzeEvaluateCreateSelf-ManagementSelf-Awareness

Teaching This Topic

Teachers should emphasize the separation of concerns: wiring the hardware first, then coding the logic to interpret input values. Avoid rushing to solutions—let students experience failures during testing, then guide them to diagnose issues by checking connections and code together. Research shows that guided trial and error with immediate feedback strengthens understanding of input-output relationships more than demonstrations alone.

What to Expect

Successful learning looks like students accurately wiring sensors to microcontrollers and writing programs that respond to environmental changes. They should explain why inputs need calibration, identify sensor types, and debug errors by checking both wiring and code. Clear evidence includes working systems and confident explanations of how inputs and outputs relate.

These activities are a starting point. A full mission is the experience.

  • Complete facilitation script with teacher dialogue
  • Printable student materials, ready for class
  • Differentiation strategies for every learner
Generate a Mission

Watch Out for These Misconceptions

Common MisconceptionDuring Sensor Stations, watch for students who assume the sensor alone turns on the LED without programming.

What to Teach Instead

Set up a station with a disconnected sensor and ask students to observe that nothing happens, then guide them to connect it and write the minimal code to activate the LED, showing the necessity of both hardware and software.

Common MisconceptionDuring Station Rotation, watch for students who think all sensors work the same way.

What to Teach Instead

Have students measure and record the resistance values of the light sensor in bright and dim light, compare the sound sensor’s signal shapes, and test the touch sensor’s response time, highlighting their unique behaviors.

Common MisconceptionDuring Touch Toggle, watch for students who believe computers can sense touch without physical hardware.

What to Teach Instead

Ask students to disconnect the touch sensor and test the program, then reconnect it to observe the difference, reinforcing that hardware is essential for real-world sensing.

Assessment Ideas

Quick Check

After Station Rotation, present students with images of three devices (e.g., a night light, a motion-activated fan, a burglar alarm) and ask them to identify the sensor input and describe the output that would result from its activation.

Exit Ticket

After the Pairs Challenge, give each student a scenario card: 'Your robot needs to stop when it sees a beam of light broken. What sensor would you use, and what output would stop the robot?' Students write their answers and justify their choice on the card.

Discussion Prompt

During Whole Class, ask students: 'How is the light sensor like your eyes? What can the light sensor do that your eyes cannot? Can you think of a task where a computer must sense something humans cannot, and why might that be important?'

Extensions & Scaffolding

  • Challenge: Ask students to add a second sensor (e.g., a sound sensor) to their light-activated LED project, creating a system that only activates the LED when both conditions are met.
  • Scaffolding: Provide pre-written code blocks for the Light Gate activity with missing values, asking students to fill in the correct sensor thresholds based on their tests.
  • Deeper exploration: Have students research and build a soil moisture sensor system using the Crumble, programming it to display different LED patterns based on dry, moist, and wet conditions.

Key Vocabulary

SensorA device that detects and responds to some type of input from the physical environment. The input can be light, heat, motion, moisture, or any one of a great number of other environmental phenomena.
InputInformation or signals sent into a computer system. For microcontrollers, sensors provide the input from the environment.
MicrocontrollerA small computer on a single integrated circuit containing a processor core, memory, and programmable input/output peripherals.
LEDLight Emitting Diode. A semiconductor device that emits light when an electric current passes through it, often used as an output indicator.
Conditional StatementA programming structure (like 'if...then') that performs different computations or actions depending on whether a programmer-specified boolean condition evaluates to true or false.

Ready to teach Inputs: Sensing the Environment?

Generate a full mission with everything you need

Generate a Mission