Cambridge IGCSE · Topic 3.2
IGCSE Computer Science 0478 / Topic 3 / IGCSE

Measuring the world.

A sensor lets a computer notice what is happening around it: how hot, how bright, how wet or how close. Learn the fourteen sensors in the syllabus, what each one measures and how to choose the right one for a job.

The key idea

A sensor is an input device that measures a physical quantity (such as temperature, light or pressure) in its surroundings and sends the reading to a processor. Most sensors produce an analogue signal, which an analogue-to-digital converter (ADC) turns into digital data. Sensors are used in monitoring systems (record and warn) and control systems (the processor compares readings with stored values and makes an actuator act). Sensors only measure: they never make decisions or act on their own.

a greenhouse that keeps itself moist moisturesensor ADCif analogue micro-processor actuatorwater valve stored value: 40 % reading below 40 % → open valve; at or above 40 % → close valve
Fig. 1: a moisture sensor feeds a microprocessor, which decides whether an actuator should open the water valve
Section 01

What a sensor does.

People can check a temperature now and then; a sensor can check it every second, day and night, without mistakes or getting tired. That is why sensors are used.

Examiner trap

Never write "the sensor turns on the heater" or "the sensor decides". The sensor only sends readings; the microprocessor compares and decides; the actuator acts.

Section 02

Fourteen sensors.

For each sensor, know what it measures (the type of data it captures) and a typical use.

SensorData capturedTypical use
AcousticSound level / noiseBurglar alarm detecting breaking glass; noise monitoring
AccelerometerAcceleration, movement and tiltPhone screen rotation; car airbag crash detection
FlowRate of flow of a liquid or gasWater supply pipes; fuel flow; breathing monitors
GasLevel of a particular gas (e.g. CO2, carbon monoxide)Carbon monoxide alarm; greenhouse CO2 control
HumidityAmount of water vapour in the airGreenhouses; museums and art galleries
Infra-redInfra-red radiation (heat from bodies) or a broken infra-red beamIntruder alarms; automatic doors and taps
LevelHow high a liquid (or solid) is in a containerFuel tanks; flood warnings; tank filling
LightLight intensity (brightness)Street lights switching on; automatic screen brightness
Magnetic fieldChanges in a magnetic fieldPhone compass; detecting doors and windows opening; vehicle detection
MoistureWater content of soil or another materialAutomatic plant watering
pHAcidity or alkalinitySoil in greenhouses; swimming pools; rivers and pollution checks
PressurePressure or force, e.g. weight on a surface or air pressureBurglar alarm pressure pads; weather stations; car tyres
ProximityHow close an object is (without touching it)Car parking sensors; phone screen off near your ear
TemperatureTemperatureCentral heating; ovens; greenhouses
Examiner trap

Moisture and humidity are different. Moisture is water in the soil (or a material); humidity is water vapour in the air.

Stage 1 · Learn

Check what the sim just showed you

Four quick checks. Each correct answer earns XP and records this skill on your profile.

Quick check+10 XP

What is a sensor?

Quick check+10 XP

Which sensor measures the water vapour in the air?

Quick check+10 XP

Why is an ADC often needed with a sensor?

Quick check+10 XP

In a control system, which part decides whether the heater turns on?

Section 03

Choosing the right sensor.

Exam questions describe a system and ask for the most suitable sensors. Match each thing that must be measured to one sensor, and say why.

Worked example Automatic greenhouse
A greenhouse keeps the soil damp, the air warm and opens a window if the air becomes too humid. Identify three suitable sensors.
  1. Keeping the soil damp: the soil's water content must be measured: moisture sensor.
  2. Keeping the air warm: temperature sensor.
  3. Air too humid: water vapour in the air: humidity sensor.
  4. The microprocessor compares each reading with its stored value and controls the sprinkler, heater and window motor (actuators).
Answer: Moisture, temperature and humidity sensors
Worked example Security system
Suggest two sensors for a home security system and what each detects.
  1. Movement of a warm body in a room: infra-red sensor.
  2. A person stepping on a mat by the door: pressure sensor.
  3. A door or window opening could also be detected with a magnetic field sensor.
Answer: For example infra-red and pressure sensors
Your turn
Which sensor would a car use to warn the driver it is about to reverse into a wall?
Examiner trap

Answer with sensor names from the syllabus list. "Motion sensor" or "heat sensor" may not earn the mark: say infra-red or temperature.

Stage 2 · Exam

Exam-style questions

Unlocks once the four checks above are done. Worth more XP, written to IGCSE Paper 1 standard.

Finish the four checks above to unlock the exam questions
Exam style+20 XP

Which sensor would be most suitable to check how acidic the water in a swimming pool is?

Exam style+20 XP

A smartphone turns its screen sideways when it is rotated. Which sensor detects this?

Exam style+20 XP

Which sensor is most suitable for detecting carbon monoxide in a kitchen?

Exam style+20 XP

Street lights switch on automatically at dusk. Which sensor is used?

Skill unlocked

Sensors, mastered.

This skill is now recorded on your profile. Keep the chain going.

-Rank -Level -Score -Topics
Go deeper · practice
Six original Cambridge-style questions
What sensors are, the data each of the fourteen syllabus sensors captures, and choosing sensors for a given system.