Skip to main content

Sensor Basics

By IOT, Sensors

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

Illustration: detecting a metal part on a conveyor
An inductive proximity sensor mounted in a bracket beside a conveyor points at a metal part.

Left: the cable carries the sensor’s output to the controller. Centre: the blue sensing face detects metal within range. Right: a metal part passes the sensor on the conveyor.

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

5 Basic Questions to Ask When Selecting a Sensor

By IOT, Sensors

This is a simplification of what things are important when selecting sensors.

There really is much more to it than this but as an introduction here are 5 questions to ask.

1. What defines the parameter that I want to measure?

Examples would be temperature, vibration, flow, pressure, distance etc.

Next ask what the maximum and minimum ranges of the measurement are.

What minimum accuracy do you need; how close is the measurement to the true reading?

What resolution do I need: what is the smallest change that I want to detect?

What is the maximum frequency that I want to measure; how quickly does the reading need to change?

2. What is the environment?

Is there a lot of vibration?

Does the sensor need to operate at high or low temperature?

Is the area very humid or wet?

Is there a lot of dust or salt-spray?

Will the sensor have to withstand harsh chemicals?

Will the sensor get knocked or shocked?

Is there any sensitive equipment nearby that may be affected by electrical noise?

Is there equipment nearby that might emit a lot of electrical noise?

You may already have a list of environmental conditions that the sensor needs to withstand.

3. SWaP – Size weight and Power?

Are there any space constraints?

Are there any weight constraints?

Is mains power available or maybe there’s 24 Volts DC etc?

What current is available for the sensor…….usually sensors do not need a lot of current.

Do you know what level of noise is on the power output (could there be large voltage spikes etc.)?

4. What type of output is required?

If the sensor needs to be connected to an existing data logger then what type of output is needed?

Typical outputs include voltage, 4-20mA, serial, ethernet, wireless.

How far is the sensor from the data logger; this can dictate the type of output needed?

5. Safety Considerations

Are there any safety considerations such as the sensor will be used to shutdown a machine?

Maybe the sensor will be placed in an explosive environment.

What are the impacts if the sensor fails?

As I mentioned, these questions are just a basis for defining the right sensor but for complex environments or safety critical applications then please discuss with your sensor supplier.

Reach out if you need further and more detailed advice.

Photo by Slidebean on Unsplash

Startups – Ditch Your Roadmap

By Business, Startups

One of the common slides for a startup pitchdeck is the product roadmap.

This is where you map out all the prototypes or main development stages up until you launch your MVP.

It looks cool but often it’s pure guesswork.

At this early stage you are validating assumptions and often you’ll learn things that you didn’t expect.

You may need to go backwards and try a new approach.

Ok so maybe don’t ditch the roadmap but make it clear that “at this moment in time it’s what we plan to do; but we know that things will change”.

Maybe add a list of things that you have learned along the way.

Investors will be more impressed that you are learning and that you can adapt and change when needed.

So maybe replace the slide with “Things we learned along our roadmap journey”

New Founder – New Thinking

By Business, Featured, Startups

Congratulations………you’ve decided that you want to run a startup.

It’s exiting isn’t it.

But wait here are some things that probably nobody has told you.

When you were employed, you did what you were told (I hope you did).

That means that you were in tactical mode. You had a direction and you knew what to do.

When you finished the work you asked for more work etc.

You didn’t worry too much if the work was really needed or if it added value to the customer.

You may have thought about this for a moment but then decided that it wasn’t your role to worry about things like that.

Now you are a founder or co-founder then things have changed. You now have to do a lot of strategic thinking.

Who are the customers

What do they want

Will they pay

What business model do I use

How much money do we have

How can I get customers interested

Are we working on the right things

What prototypes will we need

All of the above are focused on doing the right things at the right time.

Making the jum to being more strategic can be hard if you have always done what you were told to do.

In the old days it was easy…….you had a list of things to do and you knew how t do them.

Now your day often starts with a blank page and you have nobody telling you what to do.

The easy way out is to focus on what you have been good at and do that…..often this will be building the product or maybe it will be marketing or whatever.

My best advice is to learn how to wear two hats.

One is the employee hat………you do what you are told to do.

The other hat is the boss hat………you have to work out what to do and when to do it.

Make sure that you structure your week (or day) to allow time for the Boss Mode.

Being the boss may mean dreaming, researching, reading, networking, talking to customers etc.

Allow yourself time to go for a walk or a run or whatever you need to do to think clearly.

Once you have clarity of what to do then you can go into Employee Mode but block time in your calendar for Boss Mode.

Introduction to Sensors

By IOT, Sensors

Sensors are all around us and are growing in importance to monitor and control processes or devices. In essence a sensor is generally a device that turns a physical or chemical parameter into an electrical or digital output. Their role is to enable us or a computer or device to measure something useful such as temperature, pressure, position etc. Ideally they have outputs that are easy to use and easy for a computer to read.

So if you want to, say, monitor the temperature inside a container lorry transporting goods that need to be kept at a constant temperature, then a temperature sensor will be an important part of the control system. The sensor will provide an output that is proportional to the temperature and then this output can be easily converted into a number that represents the temperature (eg 12 deg C or 120 deg F etc).

We have sensors embedded in our bodies. So our eyes see colour and can detect movement etc. , our ears detect sound, our skin can detect temperature etc.

In other posts in this series we will explore typical sensor types used in manufacturing processes.