Computer ScienceExam code: 0984

Input and Output Devices

Hardware

A sensor is an input device that measures a physical property of the environment and converts the measurement into a digital value the computer can use.

Monitoring systems vs control systems

Two related uses of sensors:

  • Monitoring system: the computer records and reports the readings, for example by showing them on a screen or raising an alert. It does not take action on its own. Example: a weather station that records temperature and humidity.
  • Control system: the computer acts on the readings, switching an output device on or off (or sending a signal to an actuator) to keep some condition stable. Example: a thermostat that turns on a heater when the temperature falls below the target.

A control system usually contains a feedback loop: the output (the heater) changes the condition the sensor is measuring (the temperature), which changes the reading the sensor sends, which changes whether the heater stays on. Feedback loops are covered in topic 15.

Common sensors

SensorPhysical propertyWhere it is used
AcousticLoudness of soundNoise pollution monitoring; security alarms; industrial machinery condition
AccelerometerAcceleration, tilt, vibrationSmartphone orientation; car airbag deployment; pedometer step counting
FlowAmount of liquid, gas or steam flowing through a pipeWater and gas meters; chemical pipelines
GasPresence of a specific gas (e.g. carbon monoxide, methane)Home CO alarms; leak detection in industrial plants
HumidityWater-vapour content of the airGreenhouse climate control; museum preservation
InfraredHeat radiation; or detecting whether an infrared beam is brokenBurglar alarms; thermal imaging cameras; automatic doors
LevelThe height of a liquid in a tankPetrol tank gauge; water tank; coolant level in a car
LightLight intensity (brightness)Automatic street lights; smartphone display auto-brightness; greenhouse blinds
Magnetic fieldStrength and direction of a magnetic fieldAnti-lock braking systems; reed switches on doors; compass apps
MoistureWater content of soil or a materialSmart-irrigation systems; building damp detection
pHAcidity or alkalinity of a liquidHydroponic farming; chemical process control; swimming-pool monitoring
PressureForce per unit area of a gas, liquid, or physical contactCar tyre pressure monitoring; weather stations (barometric pressure); pipeline integrity
ProximityDistance to a nearby objectParking sensors when reversing; robotic obstacle avoidance; production-line counting
TemperatureHow hot or cold something isCentral heating; ovens; refrigerators; weather stations; medical equipment

Common exam question

Naming a sensor and what it measures or is used for

Question: Identify a sensor a given system could use and how it would use it, state what a named sensor measures, or tick the most suitable sensor for a stated purpose (1–2 marks).

Asked in 3 of the 17 papers. Naming a sensor and its use earns one mark for the sensor and one for a matching use. For a self-driving tractor the scheme pairs an accelerometer with adjusting to uneven ground or detecting a crash, a proximity sensor with detecting obstacles or the end of the field, and a light sensor with knowing when to switch the headlights on. A use that does not match the sensor loses the second mark.

Asked what a sensor measures, name the quantity: a flow sensor measures the amount of liquid, gas or steam moving through a pipe or other environment. Asked for the most suitable sensor for a robot that steers round obstacles, pick proximity, not flow, pressure or level.

Quick check

4 short questions on this note. See what has stuck, and where to look if something hasn't.

About 2 minutes

Build on this topic