Level sensor
A sensor that measures how full a container is by detecting the height of a liquid or solid, e.g. in a water tank, fuel gauge or chemical vat.
Understanding Level sensor in IGCSE Computer Science Paper 1
What it does: The data a level sensor captures is the height of the liquid or solid, which shows how full the container is. Water tanks are a classic use. Brightness is measured by a light sensor. The microprocessor reads the sensor data and can switch on an actuator, such as a pump, to refill the tank. Level sensors are used with liquids such as water, fuel and chemicals, as well as solids, so this statement is wrong.
Common mistakes: A low level means the water tank is nearly empty, so the pump should be started, not stopped. The line should be OUTPUT "Start the pump". An IF statement must end with THEN. The line should be IF fuel <= 10 THEN.
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
level sensorFill in the Blanks
Spot the Error
Student with a class code? Join your class →