1. Input/output devices
IGCSE Computer Science (0478)
  • Chapter 6: Automated & Emerging Technologies
  • Data Representation
    • Introduction
    • Why computers use binary (how binary represents data)
    • Number system
      • Introduction
      • Number Conversions
      • Addition of Binary Numbers
      • Logical binary shifts (positive 8-bit integers)
      • Twoโ€™s Complement (Signed: Positive and Negative Numbers)
      • Use of the Hexadecimal System
    • Text, Sound and Image
      • Text, Sound and Images
      • File Types
    • Data storage and File compression
      • Measurement of the Size of Computer Memories
      • Lossless and Lossy File Compression
  • Hardware
    • Computer Architecture
      • The CPU & Microprocessors
      • Von Neumann Architecture
      • Fetch-Decode-Execute Cycle (FDE)
      • Characteristics of the CPU
      • CPU Instruction Sets
      • Embedded Systems
    • Input/output devices
      • Input devices
      • Output devices
      • Sensors
    • Data Storage
      • What is Primary Storage?
      • What is Secondary Storage?
      • What is Virtual Memory?
      • What is cloud storage?
    • Network hardware
      • What is a Network Interface Card(NIC)?
      • MAC Addresses & IP Addresses
      • What is a Router?
  1. Input/output devices

Sensors

A sensor is an input device that detects and measures a physical quantity
from the real world and converts it into an electrical signal that a computer
can process.
Sensor = A device that detects a physical change in the environment
and sends a corresponding signal to a computer or microprocessor.

2. How Sensors Work โ€” The Signal Chain#

Sensors produce analogue signals (continuously varying).
Computers only understand digital signals (binary 0s and 1s).
So every sensor signal must pass through an ADC.
ADC (Analogue-to-Digital Converter): A component that samples the
analogue signal at regular intervals and converts each sample into a
binary value for the computer to read.

3. Types of Sensors โ€” On the CIE Syllabus#


4. Each Sensor in Detail#


๐ŸŒก๏ธ Temperature Sensor#

Measures heat or cold in the surrounding environment.
Produces a voltage that varies with temperature.
Commonly uses a thermistor (resistance changes with temperature).
PropertyDetail
MeasuresTemperature (ยฐC / ยฐF)
OutputAnalogue voltage
Converted byADC
Used in:
Central heating / thermostat systems
Greenhouses (automated climate control)
Weather stations
Refrigerators and freezers
Industrial ovens and furnaces

๐Ÿ’ก Light Sensor (LDR โ€” Light Dependent Resistor)#

Measures the intensity of light in the environment.
Resistance decreases as light intensity increases.
The changing resistance produces a varying voltage read by the ADC.
PropertyDetail
MeasuresLight intensity (lux)
OutputAnalogue voltage
Converted byADC
Used in:
Automatic street lighting (turns on when dark)
Camera exposure control
Burglar alarms (detecting when a light beam is broken)
Greenhouses (monitoring daylight for plants)

๐Ÿ”Š Sound Sensor (Microphone)#

Detects sound waves (variations in air pressure).
A microphone converts sound waves into a varying electrical signal.
Signal is analogue and must be converted by an ADC.
PropertyDetail
MeasuresSound level / audio (decibels)
OutputAnalogue signal
Converted byADC
Used in:
Noise monitoring systems
Baby monitors
Security systems (detecting breaking glass)
Voice-activated control systems

โš–๏ธ Pressure Sensor#

Measures force applied over a surface area.
Uses piezoelectric materials or strain gauges that change resistance under pressure.
PropertyDetail
MeasuresPressure / force (Pascals)
OutputAnalogue voltage
Converted byADC
Used in:
Airbag deployment systems (detects sudden impact)
Weather stations (atmospheric pressure / barometric)
Industrial machinery monitoring
Intruder detection mats
Tyre pressure monitoring systems

๐Ÿ’ง Humidity Sensor#

Measures the amount of moisture (water vapour) in the air.
Capacitance or resistance changes as moisture levels change.
PropertyDetail
MeasuresRelative humidity (%)
OutputAnalogue signal
Converted byADC
Used in:
Greenhouses (maintaining ideal growing conditions)
HVAC systems (heating, ventilation, air conditioning)
Weather stations
Museums (protecting artwork from damp)
Server rooms (preventing moisture damage)

๐Ÿ”ด Infrared (IR) Sensor#

Detects infrared radiation emitted by warm objects (including humans).
Can detect motion (PIR โ€” Passive Infrared sensor) or measure distance.
PropertyDetail
MeasuresInfrared radiation / motion
OutputAnalogue or digital signal
Converted byADC (if analogue)
Used in:
Burglar alarm systems (PIR motion detection)
Automatic doors (detecting approaching person)
Proximity sensors in smartphones (screen off during calls)
TV remote control receivers
Body temperature monitoring

๐Ÿงฒ Magnetic Field Sensor (Hall Effect Sensor)#

Detects the presence and strength of a magnetic field.
Voltage output changes in the presence of a magnet.
PropertyDetail
MeasuresMagnetic field strength
OutputAnalogue or digital voltage
Converted byADC
Used in:
Detecting whether a door or window is open/closed (security systems)
Speed sensors in vehicles (counting wheel rotations)
Compass applications in smartphones

๐Ÿงช pH Sensor#

Measures the acidity or alkalinity of a liquid on the pH scale (0โ€“14).
Uses a chemical electrode that produces a voltage proportional to pH.
PropertyDetail
MeasurespH level (0โ€“14)
OutputAnalogue voltage
Converted byADC
Used in:
Monitoring water quality in fish tanks or swimming pools
Greenhouses (monitoring soil or hydroponic solution pH)
Food and drink manufacturing
Chemical processing plants

๐Ÿ’จ Gas Sensor#

Detects the presence or concentration of specific gases in the air.
Resistance changes when target gas molecules interact with the sensor.
PropertyDetail
MeasuresGas concentration (ppm)
OutputAnalogue signal
Converted byADC
Used in:
Carbon monoxide detectors (home safety)
Smoke alarms
Industrial safety monitoring
Breathalyser devices
Greenhouse COโ‚‚ monitoring

๐Ÿ“ฑ Accelerometer#

Measures acceleration, tilt, and vibration โ€” detects changes in motion
or orientation.
PropertyDetail
MeasuresAcceleration (m/sยฒ), tilt
OutputAnalogue signal
Converted byADC
Used in:
Smartphone screen rotation (portrait/landscape)
Airbag systems (detects sudden deceleration in a crash)
Fitness trackers (counting steps)
Gaming controllers (motion sensing)
Earthquake detection

5. Sensors in Control Systems#

Sensors are a critical part of automated control systems and embedded systems.
They form the input side of the sense โ†’ process โ†’ act loop.
This loop is called a feedback control loop or closed-loop system.

Worked Example โ€” Greenhouse Temperature Control#


6. Advantages of Using Sensors in Automated Systems#

AdvantageExplanation
24/7 monitoringSensors work continuously without breaks
More accurateNo human error in reading values
Faster responseReact in milliseconds โ€” much faster than humans
SaferCan monitor dangerous environments (toxic gas, extreme heat)
Cost-effectiveReduces need for human monitoring staff
ConsistentSame measurement process every time

7. Summary Table โ€” All Sensors#

SensorMeasuresKey Use
TemperatureHeat / coldThermostat, greenhouse
Light (LDR)Light intensityStreet lighting, cameras
SoundAudio / noise levelSecurity alarms, monitors
PressureForce / pressureAirbags, weather stations
HumidityMoisture in airGreenhouse, HVAC
Infrared (PIR)Motion / heatBurglar alarms, auto doors
Magnetic fieldMagnetic presenceDoor/window sensors
pHAcidity / alkalinityWater quality, food industry
GasGas concentrationCO detector, smoke alarm
AccelerometerMotion / tilt / vibrationPhones, airbags, fitness

8. Key Vocabulary#

TermDefinition
SensorA device that detects a physical quantity and converts it to an electrical signal
AnalogueA continuously varying signal with infinite possible values
DigitalA signal represented as discrete binary values (0 or 1)
ADCAnalogue-to-Digital Converter โ€” converts analogue sensor output to digital
ActuatorAn output device that causes a physical action in response to a signal
Feedback loopA system where output is fed back as input to maintain a set condition
PIRPassive Infrared sensor โ€” detects infrared radiation from warm bodies
LDRLight Dependent Resistor โ€” resistance changes with light intensity
ThermistorA resistor whose resistance varies with temperature
Set pointThe target value a control system aims to maintain

9. Exam Tips โœ…#

Always state what the sensor measures and give a specific use โ€”
examiners want context, not just the sensor name.
Remember: sensors produce analogue signals โ†’ must use an ADC to convert
to digital before the CPU can process it.
In control system questions, describe the full loop:
sensor โ†’ ADC โ†’ microprocessor โ†’ decision โ†’ actuator โ†’ effect on environment.
A feedback loop means the system continuously re-reads the sensor and
adjusts โ€” mention this for full marks.
The PIR sensor is the most common infrared sensor in exam questions โ€”
link it to burglar alarms and automatic doors.
Sensors make systems faster, safer, more accurate, and available 24/7
compared to human monitoring โ€” these are standard advantages to learn.

Cambridge (CIE) IGCSE Computer Science โ€” 0478 / 0984
Modified atย 2026-04-03 09:55:16
Previous
Output devices
Next
What is Primary Storage?
Built with