Project tutorial
Health Kit: Humidity and Temperature Control

Health Kit: Humidity and Temperature Control

An Android app-controlled, Arduino-based kit that receives and analyzes humidity and temperature data.

  • 7,721 views
  • 2 comments
  • 48 respects

Components and supplies

Apps and online services

About this project

Room temperature and degree of humidity depends on the season, weather conditions and regional climate - these factors determine the optimal air environment of a particular region, as well as in a specific room. In winter, the humidity drops noticeably, and in summer it becomes higher., the same we can say about the room temperature changes. Not only the health and well-being of people, but also the state of the surrounding objects depend on air quality.

Code

Code for arduinoArduino
That's the code for analysis of the data from the sensors about temperature and humidity
#include <SoftwareSerial.h>
#include <cactus_io_AM2302.h>

#define AM2302_PIN 7 


AM2302 dht(AM2302_PIN);
int LED_RED = 13;
int LED_GREEN = 12;

SoftwareSerial Bluetooth(10, 9);

void setup() {
  Bluetooth.begin(9600);
  Serial.begin(9600);
  dht.begin();
  Bluetooth.println("Ready for command...");
  pinMode(LED_RED, OUTPUT);
  pinMode(LED_GREEN, OUTPUT);
}

void loop() {

  dht.readHumidity();
  dht.readTemperature();
  if (isnan(dht.humidity) || isnan(dht.temperature_C)) {
    return;
  }

  if ((dht.temperature_C <= 20.00) || (dht.humidity <= 40.00)){

    digitalWrite(LED_GREEN, 0);
    digitalWrite(LED_RED, 1);
    Bluetooth.println("Low temperature/humidity");

    Serial.print(dht.humidity); Serial.print(" %\t\t");
    Serial.print(dht.temperature_C); Serial.println(" *C\t");
    Bluetooth.print(dht.humidity); Bluetooth.print(" %\t\t");
    Bluetooth.print(dht.temperature_C); Bluetooth.println(" *C\t");

  }
  
  if ((dht.humidity >= 60.00) || (dht.temperature_C >= 25.00)){

    digitalWrite(LED_GREEN, 0);
    digitalWrite(LED_RED, 1);
    Bluetooth.println("High level of humidity/temperature");

    Serial.print(dht.humidity); Serial.print(" %\t\t");
    Serial.print(dht.temperature_C); Serial.println(" *C\t");
    Bluetooth.print(dht.humidity); Bluetooth.print(" %\t\t");
    Bluetooth.print(dht.temperature_C); Bluetooth.println(" *C\t");

  }


  else {
    
    digitalWrite(LED_RED, 0);
    digitalWrite(LED_GREEN, 1);
    Bluetooth.println("Comfortable level of humidity and temperature");

    Serial.print(dht.humidity); Serial.print(" %\t\t");
    Serial.print(dht.temperature_C); Serial.println(" *C\t");
    Bluetooth.print(dht.humidity); Bluetooth.print(" %\t\t");
    Bluetooth.print(dht.temperature_C); Bluetooth.println(" *C\t");
  }
  
  delay(1500);

}

Custom parts and enclosures

Mobile app for temperature and humidity control
Here is ready app for those who'd like to skip Step2 :)
app_48qBb4KYe8.zip

Schematics

Curcuit for arduino
Step 1. Connect all the parts the way it is shown on the circuit diagram
Untitled sketch 2 bb 4hvcqeahlj
Wiring of arduino and breadboard
That's how it should look like :) Don't forget to download Arduino IDE and paste the code (attached in the last part of this tutorial).
Img 20181119 173553 g7rfaklg1g
Construction of mobile app. part 1
Step 2. Creation of an app to get the data via bluetooth to android device. I used MIT App inventor to make it.
1 48vpyqfqco
Construction of mobile app. part 2
2 jgqlpraqi9
Construction of mobile app. part 3
3 gp5n87qynv
Working app. part 1
Step 3. Get data through app!
Screenshot 2018 11 19 22 18 35 nkky8nzrez
Working app. part 2
Screenshot 2018 11 19 22 18 50 irvqppzbey
Working app. part 3
Screenshot 2018 11 19 22 18 58 pasy8zasgr
Working app. part 4
Screenshot 2018 11 19 22 19 05 lkjyjore7x
Working app. part 5
Screenshot 2018 11 19 22 19 14 7y8nuj8d95
Working app. part 6
Screenshot 2018 11 19 22 16 13 zxs8jdlwmu

Comments

Similar projects you might like

Arduino Temperature Control

Project tutorial by Team pandhoit

  • 29,039 views
  • 13 comments
  • 44 respects

Monitoring Health Station

Project tutorial by Diana Khalipina

  • 10,422 views
  • 6 comments
  • 42 respects

Arduino 101 BLE App

Project in progress by Alexis Santiago Allende

  • 15,378 views
  • 29 comments
  • 61 respects

Sleeping Phases Determination

Project tutorial by Diana Khalipina

  • 4,186 views
  • 3 comments
  • 25 respects

Room temperature sensor with display on Mobile

Project showcase by Kaustubh Agarwal

  • 29,125 views
  • 9 comments
  • 63 respects
Add projectSign up / Login