Skip to Content

IoT sensors: 25 types and how they connect to a PLC

What each sensor measures, the signal it gives and where it is used in industry
December 21, 2021 by
IoT sensors: 25 types and how they connect to a PLC
Boot & Work Corp. S.L, Fernandez Queralt Martinez

An IoT sensor is a device that converts a physical quantity (temperature, pressure, presence, gas, vibration, current) into an electrical signal that a controller can read and send over a network. In industry, the sensor connects to a PLC or a gateway through a digital input, a 4-20 mA or 0-10 V analog input, a bus such as Modbus RTU, or a wireless link such as LoRaWAN, and the PLC sends the data to SCADA or the cloud with MQTT or Modbus TCP.

Below are 25 types of sensors used in IoT and IIoT projects, what each one measures, the signal it usually gives and where it is used. After the list you will find how to connect each kind of signal to an industrial PLC.

What are the main types of IoT sensors?

#SensorWhat it measuresTypical signalTypical industrial use
1Temperature (RTD, thermocouple, NTC, digital)Temperature of air, liquids or surfacesResistance (PT100), mV, 4-20 mA, 1-WireOvens, cold rooms, process lines
2Relative humidityWater vapour in the air, in %RHSingle-wire digital, I2C, 4-20 mA, ModbusWarehouses, greenhouses, clean rooms
3Pressure transmitterPressure of a liquid or gas in a pipe or tank4-20 mA, 0-10 VPumps, compressors, hydraulics
4Barometric pressureAtmospheric pressureI2C, SPIWeather stations, altitude compensation
5Level (ultrasonic, radar, hydrostatic)Height of a liquid or solid in a tank or silo4-20 mA, ModbusWater tanks, silos, wells
6FlowVolume of liquid or gas per unit of timePulses, 4-20 mA, ModbusWater networks, dosing, energy balance
7Inductive and capacitive proximityPresence of an object near the sensor without contactDigital 24 V (PNP or NPN)Conveyors, machine positions, part counting
8PhotoelectricPresence of an object that interrupts or reflects a light beamDigital 24 VPackaging lines, doors, safety areas
9Ultrasonic distanceDistance to an object by the echo time of a sound pulsePulse width, 4-20 mALevel, presence, car parks
10Contact and limit switchA door, a lid or an axis at its end positionDry contact, digital 24 VMachine guards, valves, cabinets
11Motion (PIR)Movement of people by the change of infrared radiationDigital outputLighting, intrusion, occupancy
12Vibration and accelerationAcceleration of a machine on one to three axesAnalog, IEPE, I2C, 4-20 mACondition monitoring of motors, fans and pumps
13InclinationAngle of a surface or a structureCANopen, Modbus, analogSolar trackers, cranes, platforms
14Gas (CO, combustible, O2)Concentration of a gas in the air4-20 mA, relay outputCar parks, boiler rooms, confined spaces
15CO2 (NDIR)Carbon dioxide in ppmModbus, UART, I2C, 0-10 VVentilation, silos, culture rooms
16Particulate matterPM2.5 and PM10 dust in the airUART, ModbusAir quality in workshops and cities
17SmokeSmoke particles from a fireRelay or dry contactFire alarms in cabinets and rooms
18Water leakWater on the floor or in a trayDigital contactData centers, pump rooms, basements
19pH and water qualitypH, conductivity, dissolved oxygen, turbidity4-20 mA, ModbusWater treatment, aquaculture, food
20CurrentAC or DC current in a conductorAnalog voltage, 4-20 mAMotor load, consumption, broken belt detection
21Voltage and energy meterVoltage, power and energy of a lineModbus RTU, pulsesEnergy monitoring and cost per machine
22Light (lux)IlluminanceAnalog, I2CStreet lighting, greenhouses, buildings
23Sound levelSound pressure levelAnalog, ModbusNoise at workstations, machine diagnosis
24RFID readerThe identifier of a tag or a cardUART, Wiegand, EthernetAccess control, traceability of parts
25GPS receiverPosition, speed and timeSerial (NMEA)Vehicle tracking, mobile assets

The list is a map, not a catalogue: each type has many models with different ranges, accuracy and outputs. Choose the output first by the controller you have, then by the cable length and the noise of the place.

How a sensor becomes an IoT sensor

IoT (Internet of Things) is the connection of devices to a network so that their data can be read and used from another place. A sensor alone only gives a signal. It becomes part of an IoT system when something reads that signal, gives it a meaning and sends it: a PLC, a gateway or a module with a radio.

An example: a camera next to a motion sensor. Without IoT, someone has to connect the camera to a computer to copy the photos. With IoT, the motion sensor triggers the camera, and the photo goes to the cloud at once.

Surveillance camera, an example of a device that sends its images to the cloud when a motion sensor triggers it

IIoT (Industrial Internet of Things) is the same idea in factories, utilities and infrastructure. The difference is in the requirements: industrial signals (24 V, 4-20 mA, RS-485), supply ranges and noise of a cabinet, and data that also drives control actions, not only dashboards.

Connecting IoT sensors to an industrial PLC

Sensor signalPLC inputGuide
On/off at 24 V (proximity, photoelectric, contacts)Digital inputInductive proximity sensor with M-Duino Arduino PLC
4-20 mA (transmitters)Analog input with a current input or a conversion resistor4-20 mA to 0-10 V in an Arduino PLC
0-10 V or 0-5 VAnalog inputACS712 current sensor with an Arduino PLC
RTD (PT100)RTD input or transmitterPT100 temperature sensor
1-Wire or single-wire digitalA direct pin of the PLC (5 V on Arduino PLCs, 3.3 V on ESP32 PLCs)OneWire with Arduino and ESP32 based PLCs, DHT22
Modbus RTU (RS-485)RS-485 portModbus RTU with Arduino and ESP32 based PLCs
Wireless (LoRaWAN, Wi-Fi)Gateway or radio in the PLCLoRaWAN with a PLC

In an Arduino PLC, an ESP32 PLC or a Raspberry PLC, the same controller reads the inputs and publishes the values with MQTT, Modbus TCP or HTTP. That makes it the IoT node of the machine, without a separate gateway for the wired sensors.

See sensors in real projects. In the grain silo case study, solar radio nodes read CO2 in each silo every 30 minutes and a Raspberry PLC sends the values to the cloud. In the wireless sensor network simulator, you can break a network of battery nodes and a gateway (4G loss, weak links, flat batteries) and see the alarms.

Read the grain silo case studyOpen the wireless sensor network simulator

FAQ about IoT sensors

What is the difference between a sensor and an IoT sensor?

The sensing element is the same. An IoT sensor has, or is connected to, something that sends its data over a network: a radio, an Ethernet port or a PLC that publishes the values.

Which IoT sensors are used most in industry?

Temperature, pressure, level, flow, proximity and current or energy sensors. They cover most process and machine monitoring tasks.

Is 4-20 mA or Modbus better for an IoT sensor?

4-20 mA gives one value per pair of wires and is simple to diagnose: 0 mA means a broken wire. Modbus RTU carries many values and the diagnostics of the device on one RS-485 bus. Use 4-20 mA for a few critical signals and Modbus when you need many values per device.

Can a PLC send sensor data to the cloud?

Yes. A PLC with Ethernet, Wi-Fi or 4G reads the sensors and publishes the values with MQTT or HTTP, or serves them over Modbus TCP to a SCADA.

​Search in our Blog

IoT sensors: 25 types and how they connect to a PLC
Boot & Work Corp. S.L, Fernandez Queralt Martinez December 21, 2021
Share this post

Looking for your ideal Programmable Logic Controller?

Take a look at this product comparison with other industrial controllers Arduino-based. 

We are comparing inputs, outputs, communications and other features with the ones of the relevant brands.

PLC Comparison