Smart objects and the Internet of Things

Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.

Smart objects and the Internet of Things

Name:
Date:
Class:

Quick Questions

Shade in the A or B circle for each question.

1. Which of these is an example of an Internet of Things device?
A A paper calendar pinned to the wall
B A smart thermostat that senses room temperature and connects to Wi-Fi
2. What is the main thing an IoT device does with its sensor data?
A Keeps it hidden inside the device and never uses it
B Collects and shares it over a network so it can act on it
3. A smart light turns on when you walk into a room. Which part detects you?
A A motion sensor
B The light bulb's glass cover
4. Which connectivity does a smart home speaker usually need to work with other devices?
A A network connection such as Wi-Fi or Bluetooth
B No connection at all
5. Which problem does a smart smoke alarm solve?
A It alerts your phone about a fire even when you are away from home
B It makes the house cooler in summer

Match the Pairs

Draw a line connecting each item on the left to its match on the right.

Left columnRight column
1smartThermostat.readSensor("temperature") Aif temperature < 18: heater.turnOn()
2smartLight.connect("home_wifi") Bcamera.setPassword(strongPassword)
3An IoT object acts on the data it collects, such as turning on the heating when a room is cold CA smart home device uses a sensor to collect data about the room so the system can act on it
4Data from an IoT object should be protected so that unauthorised people cannot access it DThe device shares recordings without asking the user, which is a privacy concern.
5smartDoorbell = "a normal doorbell with no network or sensors" EThis is not an IoT object because it has no sensors and no connection to a network, so it cannot collect or share data.
6smartSpeaker.sendAudioToServer() # no user consent asked FThe object joins a network so it can share data and receive commands over the internet

Definitions

Internet of Things (IoT)

Fill in the Blanks

Complete each line of code by filling in the missing parts.

1.
temp = ______.read()
2.
IF temp _ 25 THEN fan.turn_on() END IF
3.
network.____(temp)
4.
camera._______(video)
5.
IF door.locked = _____ THEN alert(phone)

Spot the Error

Shade in the letter of the line that contains an error.

Question 1
A light_on = False
B motion = sensor.read()
C if motion = True:
D light_on = True
Question 2
A temp = sensor.read_temp()
B target = 22
C if temp > target:
D heater.turn_on()
Question 3
A import wifi
B wifi.connect("HomeNet")
C reading = sensor.read()
D wifi.send(readng)
Question 4
A while True
B if doorbell.pressed():
C phone.notify("Visitor")
Question 5
A data = camera.capture()
B data = encrypt(data)
C cloud.connect(user, key)
D cloud.upload(data

Answer Key

Smart objects and the Internet of Things
Section A: Quick Questions
Q1
B — A smart thermostat that senses room temperature and connects to Wi-Fi
Q2
B — Collects and shares it over a network so it can act on it
Q3
A — A motion sensor
Q4
A — A network connection such as Wi-Fi or Bluetooth
Q5
A — It alerts your phone about a fire even when you are away from home
Section B: Match the Pairs
Q1
smartThermostat.readSensor("temperature") → A smart home device uses a sensor to collect data about the room so the system can act on it
Q2
smartLight.connect("home_wifi") → The object joins a network so it can share data and receive commands over the internet
Q3
An IoT object acts on the data it collects, such as turning on the heating when a room is cold → if temperature < 18: heater.turnOn()
Q4
Data from an IoT object should be protected so that unauthorised people cannot access it → camera.setPassword(strongPassword)
Q5
smartDoorbell = "a normal doorbell with no network or sensors" → This is not an IoT object because it has no sensors and no connection to a network, so it cannot collect or share data.
Q6
smartSpeaker.sendAudioToServer() # no user consent asked → The device shares recordings without asking the user, which is a privacy concern.
Section C: Definitions
Q1
Internet of Things (IoT) — A network of everyday objects with sensors and software that connect to the internet so they can collect and share data and act on it, such as smart lights or thermostats.
Section D: Fill in the Blanks
Q1
temp = sensor.read()
Q2
IF temp > 25 THEN fan.turn_on() END IF
Q3
network.send(temp)
Q4
camera.encrypt(video)
Q5
IF door.locked = FALSE THEN alert(phone)
Section E: Spot the Error
Q1
C — A single = assigns a value. A condition needs == to compare the sensor reading with True. It should be: if motion == True:
Q2
C — The heater should switch on when the room is colder than the target, not hotter. The condition should be: if temp < target:
Q3
D — The variable is misspelled. The sensor value is stored in reading, so readng does not exist. It should be: wifi.send(reading)
Q4
A — A while statement must end with a colon. It should be: while True:
Q5
D — The closing bracket is missing, so the function call is incomplete. It should be: cloud.upload(data)