pH sensor
An input device that measures how acidic or alkaline a liquid is on the pH scale and sends the pH value to a computer. Used in water treatment, fish tanks, soil testing and food production.
Understanding pH sensor in IGCSE Computer Science Paper 1
What it does: The sensor sends the pH value to the microprocessor, which sounds an alarm if the water is too acidic for the fish. The pH value from the soil is compared with a limit and the result is shown on an output device such as a screen. Sensors capture data from the environment and send it to the computer, so they are input devices. The data captured by a pH sensor is the pH value of the liquid. Moisture percentage comes from a moisture sensor. Soil testing is a use of pH sensors. Counting cars needs a different sensor, such as a pressure or infra-red sensor.
Common mistakes: A pH sensor is an input device. It sends the pH value to the computer, so the data must be read FROM the sensor, not output TO it. The line should be INPUT ph FROM phSensor. Alkaline liquids have a pH above 7. The test must be ph > 7, otherwise acidic liquids would be reported as alkaline.
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
pH sensorFill in the Blanks
Spot the Error
Student with a class code? Join your class →