Skip to main content

Sensor Basics

This post is an introduction to sensors. Note that the term IoT is short for Internet of things which is a broad term to cover electrical devices that connect to or use sensors and are connected over a network such as Wifi.

Part 1: Introduction to Sensors

What Are Sensors?

A sensor is a device that detects changes in the environment and converts this into electrical signals that can be measured and processed. Sensors function as the “eyes and ears” of electronic systems, enabling them to perceive and respond to the physical world.

Note that a sensor uses indirect measurement; in other word it uses a physical phenomenon to infer the actual quantity. For example a resistance value can be used to infer temperature.

How Sensors Work

The fundamental sensing process:

Sensors convert physical variables into electrical signals. The process involves:

    1. Sensing Element: Interacts directly with the environment
    2. Processing Circuitry: Converts physical variables into electrical signals
    3. Signal Output: Provides electrical output that can easily be measured or used

Part 2: Sensor Classifications

Analog vs Digital Sensors

Understanding output signal types:

Analog Sensors: Provide continuous voltage, current, resistance, capacitance, inductance etc. output that varies proportionally with the measured quantity. Examples include thermocouples and potentiometers.

Digital Sensors: Output discrete digital values through built-in analog-to-digital converters (ADCs). These sensors may be read directly by a computer.

In reality all sensors have an analog part that reacts to the physical parameter being measured. Digital sensors just take the output and turn it into a digital signal.

So to truly understand sensors you need to learn about analog electronics/physics. That’s where deep understanding is.

Active vs Passive Sensors

Power requirement classifications:

Active Sensors: Require external power to operate. Examples include Resistance Temperature Detectors (RTDs), strain gauges, pressure sensors etc. The majority of sensors require some kind of power; all digital sensors require power for their internal electronics.

Passive Sensors: Generate their own electrical signals without external power, also called self-generating sensors. Examples include thermocouples and piezoelectric sensors.

Contact vs Non-Contact Sensors

Contact Sensors: Require direct physical contact with the target for measurement.

Non-Contact Sensors: Can measure without physical contact, such as infrared temperature sensors or proximity sensors.

Actually all sensors do need to come into contact with the environment but here we are talking about physically touching.

Part 3: Common Sensor Types and Technologies

Temperature Sensors

Measuring temperature or temperature differences:

Thermocouples: Measure temperature through voltage differences between two different metals

Thermistors: Their resistance changes with temperature variations

RTDs (Resistance Temperature Detector or Device): Similar to thermistors in that their resistance changes with temperature. A common material used is platinum (these types are often called Platinum Resistance Thermometers or PRTs).

Infrared Sensors: Detect thermal radiation for non-contact measurement

Proximity and Position Sensors

Detecting presence and location:

Inductive Sensors: Detect metallic objects using electromagnetic fields

Capacitive Sensors: Detect both metallic and non-metallic objects through capacitance changes

Ultrasonic Sensors: Use sound waves for distance measurement

Photoelectric Sensors: Use light or laser beams for object detection

Pressure Sensors

Measuring pressure and movement:

Piezoelectric Sensors: Convert mechanical stress caused by pressure into electrical charge

Strain Gauge Sensors: Measure deformation or a diaphragm or structure to determine pressure

Capacitive Pressure Sensors: Detect pressure through capacitance variations

Vibration or Orientation Sensors

Measuring vibration, acceleration or orientation:

Piezoelectric Sensors: Convert mechanical stress of a crystal into electrical charge

Strain Gauge Sensors: Measure deformation to determine acceleration or angle relative to gravity

Servo (Force-Balance): Uses a feedback loop and coil/actuator to keep an internal mass at a null/equilibrium position

Part 4: Sensor Specifications and Selection

Key Specifications to Understand

Critical parameters for sensor selection:

Accuracy: How close the sensor reading is to the true value

Resolution: The smallest change the sensor can detect

Repeatability: How consistently the same sensor produces the same output under identical conditions

Range: The minimum and maximum values the sensor can measure

Hysteresis: The difference in output at a given input value depending on whether the input is approached by increasing or decreasing

Sensitivity: The ratio of output change to input change

Response Time: How quickly the sensor responds to changes

Linearity: How closely the output follows a straight-line relationship across its operating range

Offset & Zero Drift: Any output present at zero input (offset) and how that baseline shifts over time or with temperature changes (drift).

Operating Temperature: Temperature range for normal operation

Other Environmental Factors: sunlight, altitude, vibration, shock, electrical noise, burst pressure etc.

Five-Question Selection Framework

Systematic approach to choosing sensors:

    1. What are you sensing? Identify the physical parameter and target characteristics
    2. What are the environmental conditions? Temperature, humidity, vibration considerations
    3. SWaP – Size weight and Power
    4. What output type do you need? Analog, digital, or switching signals
    5. Safety Considerations – what happens if the sensor fails? Is the environment explosive, flammable or corrosive?

Part 5: Industrial Internet of Things (IIoT) Sensors

What Are Industrial IoT Devices?

IIoT devices are industrial devices, often with integrated sensor and computing functions that connect to larger systems via wired or wireless communication. They are designed for the harsh environments experienced in an industrial setting.

Key Characteristics:

    • Ruggedised design for harsh industrial environments
    • Optional Wireless connectivity for easy deployment
    • Optional Integrated or AI processing capabilities

Industrial Applications

Where IIoT sensors make a difference:

Manufacturing: Monitor machine performance, detect anomalies, prevent failures

Energy Management: Track power consumption, optimise efficiency

Safety Systems: Monitor environmental conditions, ensure worker safety

Quality Control: Ensure product standards and process optimisation

Part 6: Sensor Communication and Networking

Communication Protocols

How sensors share data:

Wired Protocols:

    • I2C/SPI: For short-distance embedded applications
    • Modbus: An industrial standard for equipment communication
    • CAN Bus: Automotive and industrial networking
    • Ethernet: Standard ethernet connectivity

Wireless Protocols:

    • Zigbee: Low-power mesh networking
    • Bluetooth/BLE: Short-range personal area networks
    • Wi-Fi: High-bandwidth local area networks
    • LoraWan: Long range low-bandwidth for remote sensing
    • Satellite: When all of the above cannot be used

Sensor Networks

Creating connected sensor systems:

Wired Sensor Networks: Use ethernet cables for reliable connections

Wireless Sensor Networks (WSNs): Use wireless technologies for flexible deployment

Network Topologies:

    • Star Network: Central hub architecture
    • Mesh Network: Distributed, self-healing networks
    • Tree Network: Hierarchical data flow

Part 7: Sensor Data and Analytics

Data Collection and Processing

From raw data to actionable insights:

Data Collection: Sensors generate continuous streams of information which can be sent as raw data or else processed locally and then only summary data sent

Data Processing: Filtering, cleaning, and structuring raw sensor data

Data Analysis: Extracting patterns and insights using statistical methods

Edge vs Cloud Processing

Where data processing happens:

Edge Computing: Processing at the sensor or device level for reduced latency

Central Computing: Data is sent to one main computer where it is analysed and processed

Cloud Computing: Cloud based processing for large-scale analytics

Analytics Applications

What can be done with sensor data and how is it turned into actionable information:

Condition Monitoring: Track equipment health and performance

Predictive Maintenance: Predict failures before they occur

Process Optimisation: Improve efficiency and reduce waste

Part 8: Sensor Installation and Mounting

Physical Installation Considerations

Practical deployment aspects:

Mounting Options: Threaded, glued, clamp-on, magnetic mounts

Environmental Protection: Protection against dust, water, shock, corrosive fluids

Cable Management: Proper routing, stress relief, shielding

Electrical Connections

Wiring and power considerations:

Power Requirements: Matching sensor needs to available supply

Signal Wiring: Proper shielding and grounding

Connection Types: Threaded, quick-disconnect, terminal blocks

Part 9: Sensor Calibration and Maintenance

Understanding Calibration

Ensuring accurate measurements:

Sensor calibration is the process of measuring the sensor response against known reference standards. Differences can be noted, or used in engineering unit conversion or the sensor can be adjusted. Note that adjustment to “bring the sensor back into spec” has implications; are previous measurements valid?

How Often?

This is always a tricky question as “it depends”.

It depends on the environment and so there is no one correct answer.

A standard period of 1 year is often used but this should be the starting point.

Calibrations should be reviewed to monitor how close the sensor is to going outside of specification (either the supplier’s or user’s specification). If a sensor “fails” calibration then the calibration periodicity is too long. As a sensor ages then the period may need to be reduced.

Calibration Methods

Different approaches to calibration:

In-situ: the sensor is attached to specialist equipment and the measured parameter is varied

Lab: the sensor is removed and sent to a lab for calibration

Maintenance Best Practices

Keeping sensors operational:

Preventive Maintenance: Regular inspection and cleaning

Predictive Maintenance: Using diagnostics to predict failures, is the signal getting noisy etc.

Corrective Maintenance: Addressing problems as they occur……react to problems

Part 10: Troubleshooting and Problem Solving

Common Sensor Problems

Identifying typical issues:

Signal Issues: No output, intermittent signals, incorrect readings, noise

Power Problems: Voltage issues, grounding problems

Environmental Factors: Temperature effects, contamination, electrical interference