Light sensor
An input device that measures how bright the light is and sends the light level to a computer. Used in automatic street lights, screen brightness and greenhouses.
Understanding Light sensor in IGCSE Computer Science Paper 1
What it does: The light sensor gives a low light level at dusk, so the microprocessor switches the street lamp on. A light sensor measures how bright the light is. A temperature sensor measures how hot or cold it is. A sensor sends data into the computer or microprocessor, so it is an input device.
Common mistakes: A low light level means it is dark, so the street lamp should be switched on. Line 3 should be lamp <- ON. The function call is missing its closing bracket. It should be light <- ReadLight() so the light sensor's reading is stored in light.
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 283–292) and word search (Modules 283–303).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
light sensorFill in the Blanks
Spot the Error
Student with a class code? Join your class →