Develop a Smart Health Monitoring System

Introduction

The Smart Health Monitoring System utilizes IoT technology to monitor vital health parameters such as heart rate, temperature, and blood pressure. This system can send alerts in case of abnormal readings, allowing for timely medical intervention.

Components Required

Wiring Diagram

Wiring Diagram for Health Monitoring System

Code Explanation

The following code demonstrates how to read data from the sensors and display it on an OLED screen:


#include <Wire.h>
#include <Adafruit_SSD1306.h>
#include <DHT.h>

// Pin Definitions
#define DHTPIN 2 // DHT sensor pin
#define DHTTYPE DHT11 // DHT 11
DHT dht(DHTPIN, DHTTYPE);

// OLED display setup
Adafruit_SSD1306 display(128, 64, &Wire, -1);

void setup() {
    Serial.begin(115200);
    dht.begin();
    display.begin(SSD1306_I2C_ADDRESS, OLED_RESET);
    display.clearDisplay();
}

void loop() {
    float temperature = dht.readTemperature();
    float humidity = dht.readHumidity();

    // Display readings
    display.clearDisplay();
    display.setCursor(0, 0);
    display.print("Temp: ");
    display.print(temperature);
    display.println(" *C");
    display.print("Humidity: ");
    display.print(humidity);
    display.println(" %");
    display.display();

    delay(2000); // Update every 2 seconds
}
        

Working

The system continuously monitors the health parameters. If any parameter exceeds the normal range, the buzzer will sound an alert.

Conclusion

This Smart Health Monitoring System allows for continuous health tracking and instant alerts, contributing to better health management.