Learning Objectives
By the end of this lesson, you will be able to:
-
Explain what Sensors are and how they work in IoT Systems.
-
Identify different types of sensors such as light sensors, motion sensors, and temperature sensors.
-
Demonstrate how to use sensors to control actuators like LEDs and Buzzers in a circuit simulation.
-
Build and test sensor-based projects in Tinkercad.
What are Sensors?

Sensors act like the sense organs of an IoT device — they can see (light), feel (temperature), hear (sound), or detect movement (motion).
Why are sensors important in IoT?
-
They collect real-world data that IoT devices use to make smart decisions.
-
Without sensors, IoT devices would have no awareness of their surroundings.
Types of Sensors in this Lesson
-
Light Sensor - LDR (Light Dependent Resistor)
-
Detects brightness levels in the environment.
-
Resistance changes with light intensity — more light means less resistance, less light means more resistance.
-
Example: Street lights that automatically turn on when it gets dark.
-
-
Motion Sensor (PIR - Passive InfraRed)
-
Detects movement by sensing infrared radiation from people, animals, or objects.
-
Can trigger alarms, lights, or cameras.
-
Example: Security systems that sound an alarm when motion is detected.
-
-
Temperature Sensor (LM35, DHT11, etc.)
-
Measures temperature in the environment.
-
Sends temperature readings to the microcontroller for processing.
-
Example: Air conditioners that turn on when the room gets too hot.
-
How Sensors Work in IoT
Sensors are connected to the Arduino’s input pins(or in any Microcontroller) .
When the sensor detects a change, it sends an electrical signal to the Arduino.
The Arduino then processes this signal and can control an actuator (like an LED or buzzer) in response.
Example:
-
Light sensor detects darkness.
-
Arduino receives the signal.
-
Arduino turns on the LED.
Hands-On Activities
Activity 1: Light Sensor to Turn LED On/Off
Goal: Use a light sensor LDR (Light Dependent Resistor) to control an LED.Steps:
-
In Tinkercad, place an Arduino Uno, an LDR, a LED, and a resistor.
-
Connect the LDR to analog pin A0 and GND.
-
Connect the LED’s positive leg to digital pin 7 and negative leg to GND
Write a program so that when it gets dark (low light), the LED turns on, and when it’s bright, the LED turns off.
Activity 2: Motion Sensor to Trigger Buzzer
Goal: Use a motion sensor to activate a buzzer when movement is detected.
Steps:
-
In Tinkercad, place an Arduino Uno, a PIR motion sensor, and a buzzer.
-
Connect the PIR sensor output to digital pin 2.
-
Connect the buzzer’s positive pin to digital pin 8 and negative to GND.
-
Write a program so that when the PIR detects movement, the buzzer makes a sound.
Real-World Applications
-
Light sensor + LED →Automatic Street Lighting.
-
Motion sensor + buzzer → Home Security Alarm.
-
Temperature sensor + fan → Automatic Cooling System.
Comments
Post a Comment