Exp 9
Exp 9
Aim:
To study the applications of IoT in healthcare and propose an IoT model for healthcare using an
Arduino-based system.
Objective:
Hardware Required:
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);
Result:
Learning Outcomes: