Back to homeDigital Culture · High School Year 3 · Physics-Math · Change subject
Start for free
Prep 3 Tech · Digital Culture
Computer systems · The Internet of Things

Internet of Things Elements and Communication Protocols

Before you start, make sure you know: Sensors, controllers, and actuators (Secondary Year 3)
Before you start, make sure you know: The Internet of Things (Secondary Year 3)

In a cornfield in Oaxaca, a moisture probe buried in the soil tells Tonatiuh, on his cell phone, that the ground is dry. The probe doesn't "think" on its own: it is an object connected to the internet. What parts does a system like this need, and how does the data travel from the soil to the screen? We'll work it out step by step.

The four elements of an IoT system

The Internet of Things (IoT) consists of everyday objects (wristbands, thermostats, cameras, water pumps) that measure their surroundings, communicate over a network, and sometimes act without anyone being in front of them. It is one of the technology fields creating the most jobs, along with Industry 4.0, where it is used in plants such as the auto parts factories in Guanajuato.

Journey of a piece of data in an IoT system: moisture sensor, wifi, cloud platform, and app on the cell phone Moisturesensor wifi Platform Appon the cell phone each link has a different function: capture, transport, process, display

There is an important difference between data and information. "Moisture 38%" is data: a measured value. "Water this afternoon" is information: the data already interpreted and useful for making a decision. The platform or the app turns one into the other by comparing the data with a criterion.

Practice★☆☆Not started
Explain in your own words what the Internet of Things is and describe two examples of connected objects you know, stating what data they send or receive.

Explain in your own words what the Internet of Things is and describe two examples of connected objects you know, stating what data they send or receive.

Solve
Practice★☆☆Not started
Every IoT system combines four elements: sensors, actuators, connectivity and application. Explain what each brings to the system and give a specific example of each…

Every IoT system combines four elements: sensors, actuators, connectivity and application. Explain what each brings to the system and give a specific example of each element within a smart home.

Solve
Practice★☆☆Not started
The figure shows the architecture of an IoT system that monitors plant moisture: the sensor sends data via Wi-Fi to the network and the user views it on a mobile app,…

The figure shows the architecture of an IoT system that monitors plant moisture: the sensor sends data via Wi-Fi to the network and the user views it on a mobile app, but one of the elements is covered by a question mark, as shown in the figure.

Moisture sensor Wi-Fi ? Mobile app data alerts

Indicate which element is missing from the chain and what functions it performs (storing and processing data, being accessible from anywhere...). Then, describe the complete journey of a piece of data from the plant to the cell phone screen.

Solve
Practice★☆☆Not started
Explain what a sensor is and describe three common sensors in IoT devices (temperature, humidity, light, motion, distance...), stating what each one measures.

Explain what a sensor is and describe three common sensors in IoT devices (temperature, humidity, light, motion, distance...), stating what each one measures.

Solve
Practice★☆☆Not started
Explain what an actuator is and describe three actuators in a smart home (smart plug relay, motorised lock, irrigation valve), stating what action each one performs.

Explain what an actuator is and describe three actuators in a smart home (smart plug relay, motorised lock, irrigation valve), stating what action each one performs.

Solve
Practice★☆☆Not started
In a smart garden app, the data item "moisture 38%" and the message "water this afternoon" are not the same thing. Explain the difference between data and information,…

In a smart garden app, the data item "moisture 38%" and the message "water this afternoon" are not the same thing. Explain the difference between data and information, and which part of the system converts the former into the latter.

Solve

Addresses and data encoded in bits

Remember from Digital Culture I: the speed of a network is measured in bits per second (Mbps), and storage capacity in bytes (1 byte = 8 bits). The "megas" in an internet plan are Mbps.

An everyday example of a protocol is bluetooth pairing: before communicating, two devices authorize each other (for example, by confirming a code when you connect your earbuds to your cell phone). That way, a stranger nearby can't connect to them.

Practice★☆☆Not started
Explain in your own words what an IP address is and why every device connected to a network needs a unique address (it works like the device's postal address within the…

Explain in your own words what an IP address is and why every device connected to a network needs a unique address (it works like the device's postal address within the network).

Solve
Practice★☆☆Not started
What is Bluetooth pairing? Describe a situation in which you have used it and what security is provided by requiring two devices to pair before communicating.

What is Bluetooth pairing? Describe a situation in which you have used it and what security is provided by requiring two devices to pair before communicating.

Solve

Comparing short-range and long-range protocols

The transmission media of an IoT system are usually wireless (although there can also be a cable, such as an Ethernet cable to a switch). Here, range is the coverage of the connection. And you choose according to your resources and context: a house in Mexico City with fiber is not the same as a rural plot with no coverage.

Comparison of wireless IoT protocols by increasing range: Bluetooth (a few meters), wifi (tens of meters), and long-range, low-power networks (kilometers) increasing range Bluetooth a few m wifi tens of m long range km, low power

Battery-powered sensors can't transmit nonstop. Two saving strategies:

  • Put the device to sleep between measurements: it saves a lot, but you lose immediacy (you don't detect what happens while it sleeps).

  • Send summaries at intervals (an average every 15 minutes) instead of every reading: it saves transmissions, but you lose level of detail.

The same goes for a GPS tracker on a pet's collar: sending the position less often, using a low-power network, and activating only when motion is detected all extend battery life, at the cost of less tracking precision.

Practice★★☆Not started
Compare Wi-Fi and Bluetooth as protocols for an IoT device (range, power consumption, speed, network requirement) and reason which you would choose for: (a) a fitness…

Compare Wi-Fi and Bluetooth as protocols for an IoT device (range, power consumption, speed, network requirement) and reason which you would choose for: (a) a fitness tracker that synchronizes with a cell phone and (b) a security camera that sends real-time video.

Solve
Practice★★☆Not started
Choose and justify the connectivity (Wi-Fi, Bluetooth, or cellular data) for: (a) a sports watch that synchronizes with a cell phone, (b) a video doorbell that streams…

Choose and justify the connectivity (Wi-Fi, Bluetooth, or cellular data) for: (a) a sports watch that synchronizes with a cell phone, (b) a video doorbell that streams live video, and (c) a bicycle tracker that may be far from home. Consider the range, battery consumption, and data cost in each case.

Solve
Practice★★☆Not started
A battery-powered sensor cannot transmit continuously without draining the batteries. Explain two energy-saving strategies in IoT (putting the device to sleep between…

A battery-powered sensor cannot transmit continuously without draining the batteries. Explain two energy-saving strategies in IoT (putting the device to sleep between measurements, sending summaries at intervals instead of every reading) and what is sacrificed with each (immediacy, level of detail).

Solve
Practice★★☆Not started
A farmer wants to install twenty soil moisture sensors spread across a field where there is no Wi-Fi coverage. Propose a reasonable connectivity solution (low-power…

A farmer wants to install twenty soil moisture sensors spread across a field where there is no Wi-Fi coverage. Propose a reasonable connectivity solution (low-power long-range network, intermediate gateway...) and justify your choice compared to simply using Wi-Fi or Bluetooth.

Solve
Practice★★★Not started
A battery-powered GPS tracker on a pet collar needs to last for weeks. Analyze which design decisions extend battery life (interval between location updates, low-power…

A battery-powered GPS tracker on a pet collar needs to last for weeks. Analyze which design decisions extend battery life (interval between location updates, low-power network versus cellular data, activating only when movement is detected) and what compromise you accept in tracking accuracy.

Solve

Gateways and local versus cloud processing

A sensor with no IP address sends its data to a gateway, which forwards it to the cloud sensor with no IP gateway cloud

The same happens with a smart thermostat: the device captures the temperature, compares it with the desired value, and turns the heating on or off by itself (automatic, local decision); the cloud stores the history and lets the person view and give commands from the app.

It also matters in emergencies. A fire alarm that depends 100% on the cloud fails if the wifi or the server goes down (single point of failure) and adds latency. Critical functions (sirens, floodgates) should be decided locally (edge), and the cloud is left for history and analysis. An irrigation system with the valve open should shut itself off if it loses connection, and to keep an exhaust fan from switching on and off constantly, two thresholds are used (hysteresis): for example, turn on at 850 ppm of CO₂ and turn off at 700 ppm.

Practice★★☆Not started
Analyse a smart thermostat: identify what data it captures, where it is processed (on the device itself or in the cloud), what decisions it makes automatically, and what…

Analyse a smart thermostat: identify what data it captures, where it is processed (on the device itself or in the cloud), what decisions it makes automatically, and what the user sees and can command from the application.

Solve
Practice★★☆Not started
Some sensors do not connect directly to the Internet, but to a gateway that speaks on their behalf. Explain what an IoT gateway is, when it is needed (sensors using…

Some sensors do not connect directly to the Internet, but to a gateway that speaks on their behalf. Explain what an IoT gateway is, when it is needed (sensors using low-power protocols without their own IP address, installations with many sensors), and what management advantage it provides.

Solve
Practice★★☆Not started
Analyse a smart speaker with a voice assistant: what processing occurs on the device itself (detecting the wake word) and what occurs in the cloud (understanding the…

Analyse a smart speaker with a voice assistant: what processing occurs on the device itself (detecting the wake word) and what occurs in the cloud (understanding the request and responding), and what features become unavailable when the Internet connection drops.

Solve
Practice★★★Not started
In an automated school greenhouse, it is detected that plants suffer from fungal diseases because the system waters indiscriminately whenever soil moisture drops below…

In an automated school greenhouse, it is detected that plants suffer from fungal diseases because the system waters indiscriminately whenever soil moisture drops below 30 %, even at night or under high ambient humidity; furthermore, an occasional Wi-Fi drop caused a flood because the valve remained open. Redesign the IoT system: 1) Select and justify which additional sensors you must incorporate besides the soil moisture sensor. 2) Design a logical control algorithm with compound conditions (soil moisture, ambient humidity, temperature, and time window) to optimize irrigation and prevent plant diseases. 3) Reasonably justify whether the decision to open or close the solenoid valve should be executed on the local microcontroller (Edge Computing) or on a cloud server to ensure facility safety during network outages.

Solve
Practice★★★Not started
A company proposes installing a 100 % cloud-dependent fire alarm and environmental control system in a high school: smoke and CO2 sensors send readings via Wi-Fi to a…

A company proposes installing a 100 % cloud-dependent fire alarm and environmental control system in a high school: smoke and CO2 sensors send readings via Wi-Fi to a remote server, which processes the data and sends commands back to actuators to sound sirens and open dampers. Technically refute this proposal by evaluating the risks of latency, network availability, and single points of failure during an emergency. Next, design a hybrid architecture (Edge Computing and Cloud Computing) detailing which specific functions must strictly be executed locally in real time and which should be delegated to the cloud, justifying the division of tasks.

Solve
Practice★★★Not started
In a classroom of 30 students, the goal is to automate CO2 monitoring and mechanical ventilation. If a fixed threshold of 800 ppm is set, the system continuously turns…

In a classroom of 30 students, the goal is to automate CO2 monitoring and mechanical ventilation. If a fixed threshold of 800 ppm is set, the system continuously turns the exhaust fan on and off whenever the concentration fluctuates between 795 and 805 ppm, causing annoying noise and premature motor wear. 1) Design a control logic with hysteresis (establish two justified thresholds: one for activation and one for deactivation) to solve this problem. 2) Justify the choice of sensor type (NDIR optical technology versus low-cost MOX electrochemical sensors) considering gas selectivity and measurement stability. 3) Evaluate which connectivity technology (Wi-Fi versus Zigbee or Bluetooth LE) is most suitable if the sensor must be placed in the center of the classroom powered by a battery that must last the entire school year.

Solve

Security and interoperability

From the review in Digital Culture I: access credentials, privacy, and data protection also apply to connected objects.

An IoT device with a factory password, accessible from the internet, opens the way to the rest of the home network with a computer, server, and cell phone internet password lists by default IoT device factory password rest of the network

Typical risks analyzed in a smart home: a camera with factory credentials and no encryption (anyone can see the video), a speaker that uploads recordings after false activations (privacy), and a compromised plug that allows spying on local network traffic. The mitigations are combined: unique passwords, encryption, updates, separate networks (for example, one network for guests and IoT devices), and turning off or limiting cloud recording. On a voice assistant, you should require local processing of the wake word, clear consent, and special protection of minors' data.

Practice★★☆Not started
An IP camera comes with the factory password "admin/admin". Analyse the specific risk of not changing it (lists of default passwords circulate on the Internet and…

An IP camera comes with the factory password "admin/admin". Analyse the specific risk of not changing it (lists of default passwords circulate on the Internet and devices can be found with specialised search engines) and describe two basic security measures for any domestic IoT device.

Solve
Practice★★★Not started
During a security audit of a smart home with IP cameras, smart speakers, and connected plugs, three incidents are detected: a camera streams continuous video traffic…

During a security audit of a smart home with IP cameras, smart speakers, and connected plugs, three incidents are detected: a camera streams continuous video traffic externally using unencrypted factory credentials; a speaker sends recordings triggered by false activations to the cloud; and a compromised smart plug allows an attacker inside the Wi-Fi network to intercept local traffic. Analyze the attack vector that exploits each vulnerability and design a technical mitigation strategy that includes network segmentation (separate VLANs or subnets), authentication and encryption policies, and physical or logical configuration adjustments to neutralize all three risks.

Solve
Practice★★★Not started
The contract for a new IoT voice assistant states that the device periodically records and uploads audio snippets to the server to "train acoustic recognition algorithms…

The contract for a new IoT voice assistant states that the device periodically records and uploads audio snippets to the server to "train acoustic recognition algorithms and improve user experience". As the person in charge of privacy and technological design: 1) Analyze the technical difference between local processing of the wake word on the device's chip and streaming audio directly to the cloud, evaluating the risks of leaking private conversations or minors' data. 2) Design three rigorous technical requirements (at the hardware, encryption, and data retention policy levels) that you would impose on the manufacturer to prevent passive monitoring without consent before authorizing its purchase.

Solve
Practice★★★Not started
A user has light bulbs that only work via manufacturer A's cloud app, Zigbee plugs dependent on a proprietary gateway B, and Wi-Fi presence sensors from manufacturer C…

A user has light bulbs that only work via manufacturer A's cloud app, Zigbee plugs dependent on a proprietary gateway B, and Wi-Fi presence sensors from manufacturer C that do not support external integrations. 1) Explain at a technical level why it is impossible to execute a direct, local rule such as "if sensor C detects motion, turn on light bulb A only if plug B is active". 2) Analyze the issues of latency, security, and obsolescence caused by relying on multi-cloud platforms versus using unified universal standards (such as Matter over Thread networks or open local gateways). 3) Define what three technical criteria of interoperability and protocol compatibility the user should demand before purchasing any new device to guarantee its complete integration.

Solve
Practice★★★Not started
In a 5 km² agricultural holding, 50 battery-powered humidity and temperature sensor nodes are installed. Each node transmits a 100-byte packet every 10 minutes. The use…

In a 5 km² agricultural holding, 50 battery-powered humidity and temperature sensor nodes are installed. Each node transmits a 100-byte packet every 10 minutes. The use of conventional Wi-Fi is compared against an LPWAN network (such as LoRaWAN in the 868 MHz band). 1) Calculate the total data volume generated by the entire network in one day (in kB) and in a 30-day month (in MB). 2) Knowing that European regulations in the 868 MHz band impose a maximum duty cycle of 1% (the node cannot transmit for more than 1% of the time), demonstrate numerically whether a node that takes 450 ms to modulate and transmit its packet complies with the law when transmitting every 10 minutes. 3) Technically justify why an LPWAN network is superior to a Wi-Fi network for this specific deployment, assessing topology, range, vegetation penetration, and energy autonomy.

Solve

Summary

Go back to the beginning: the probe in the cornfield is a sensor; its data travels over a long-range network to a gateway and the cloud, and the app shows Tonatiuh the information "water today."

See all the exercises in this section