Moisture sensor
An input device that measures the amount of water in a solid material such as soil. Used in automatic plant watering and farming. Not the same as a humidity sensor, which measures air.
Understanding Moisture sensor in IGCSE Computer Science Paper 1
What it does: The moisture reading from the soil is compared with a limit, and the microprocessor switches the pump on (an actuator) when the soil is too dry. A moisture sensor measures water content in a solid material such as soil. Air is measured by a humidity sensor. A moisture sensor captures data from the environment and sends it to the processor, so it is an input device.
Common mistakes: A low reading means the soil is dry, so the pump should switch on when moisture is below the threshold. It should be IF moisture < 30 THEN. Text to be displayed must be inside quotation marks. It should be OUTPUT "Water the plant".
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
moisture sensorFill in the Blanks
Spot the Error
Student with a class code? Join your class →