0% found this document useful (0 votes)
3 views2 pages

Exp 9

Uploaded by

Krishna RS
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
Download as pdf or txt
0% found this document useful (0 votes)
3 views2 pages

Exp 9

Uploaded by

Krishna RS
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
Download as pdf or txt
Download as pdf or txt
You are on page 1/ 2

DEPARTMENT OF

COMPUTER SCIENCE & ENGINEERING


Experiment 9

Student Name: Sagar Rawat UID: 22BCS10832


Branch: CSE Section/Group: 22BCS_639_A
Semester: 5th Date of Performance: -10 -24
Subject Name: IOT LAB Subject Code: 22CSP-329

Aim:

To study the applications of IoT in healthcare and propose an IoT model for healthcare using an
Arduino-based system.

Objective:

 Design a secure smart lock system using RFID technology.


 Control a door lock via servo motor based on authorized RFID tags.
 Display system status on an LCD screen.

Hardware Required:

 Arduino Uno board  Jumper wires


 Soil moisture sensor  USB cable for Arduino
 Breadboard  Computer with Arduino IDE installed

Code:
// Define pin connections
const int moistureSensorPin = A0;
const int ledPin = 13;
void setup() {
pinMode(ledPin, OUTPUT);
Serial.begin(9600);
}
void loop() {
int moistureLevel = analogRead(moistureSensorPin); // Read sensor value
Serial.print("Soil Moisture Level: ");
Serial.println(moistureLevel);

if (moistureLevel < 400) { // If soil is dry


DEPARTMENT OF
COMPUTER SCIENCE & ENGINEERING
digitalWrite(ledPin, HIGH); // Turn on LED (alert)
} else {
digitalWrite(ledPin, LOW); // Turn off LED
}

delay(2000); // Wait 2 seconds before next reading


}

Result:

Learning Outcomes:

 Understand IoT applications in healthcare.


 Learn how to interface sensors with Arduino.
 Develop skills in real-time monitoring using IoT tools.

You might also like