Sensors, microprocessor and actuator in a control system
A sensor sends readings to a microprocessor, which compares them with a stored value and signals an actuator, such as a heater, to act. This repeats continuously.
Understanding Sensors, microprocessor and actuator in a control system in IGCSE Computer Science Paper 1
What it does: The ADC changes the analogue sensor signal into a digital value stored in temp so the microprocessor can process it. Sensors measure. Actuators act, for example a heater, a valve or a motor. The sensor keeps taking readings, so the microprocessor can keep checking and adjusting. That is why it is called a loop. The moisture sensor is the input. The valve is an actuator that acts when the soil is too dry. A keyboard is not an actuator. The comparison with the set value of 20 decides whether the heater actuator is switched on. A control system must repeat continuously, so the code should be wrapped in WHILE TRUE ... ENDWHILE.
Common mistakes: A control system repeats continuously in a feedback loop. WHILE FALSE means the loop never runs, so the sensor is never read. It should be WHILE TRUE DO. The heater should switch on when the temperature is below the stored value. t > 18 would switch it on when the greenhouse is already warm. It should be IF t < 18 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 293–303) 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
feedback loopFill in the Blanks
Spot the Error
Student with a class code? Join your class →