Things used in this project

Schematics

Green Garden Schematics

Code

Green GardenArduino
/*  Project - greengarden
    Team - Amazing
    Hackster AWS Intel hackathon, NYC
    December 11, 2016
*/

#include <TH02_dev.h>
#include "Arduino.h"
#include "Wire.h"

#define  LightSensor A0
#define  MoistureSensor A1

void setup() {
  Serial.begin(9600);        // start serial for output

  Serial.println("TH02 initializing ...");
  /* Power up,delay 150ms,until voltage is stable */
  delay(150);
  /* Reset TH02 */
  TH02.begin();
  delay(100);
  /* Determine TH02_dev is available or not */
  Serial.println("TH02 is available");

}

void loop()
{
  float temper = TH02.ReadTemperature();
  Serial.print("Temperature: ");
  Serial.print(temper);
  Serial.print("C");
  Serial.println("\t");

  float humidity = TH02.ReadHumidity();
  Serial.print("Humidity: ");
  Serial.print(humidity);
  Serial.print("%");
  Serial.println("\t");

  // read the input on analog pin 0:
  int sensorValue1 = analogRead(LightSensor);
  // print out the value you read:
  Serial.print("Light Level: ");
  Serial.print(sensorValue1);
  Serial.print("\t");
  Serial.println();

  // read the input on analog pin 1:
  int sensorValue2 = analogRead(MoistureSensor);
  // print out the value you read:
  Serial.print("Moisture Level: ");
  Serial.print(sensorValue2);
  Serial.println("\t");
  Serial.println();

  // delay in between reads for stability
  delay(1000);

}

Credits

Lizxiyiurrt5pavio2mi
Farrukh Zia

Professor of computer technology at CityTech

Contact
Hxwczrzbvb3l5giwvihe
Farjana Ferdousy

Masters Degree in Computer Science student from Queens College

Contact

Replications

Did you replicate this project? Share it!

I made one

Love this project? Think it could be improved? Tell us what you think!

Give feedback

Comments

Similar projects you might like

Eco-Thing #1  "Eco-Smart-Container V1.0"
Intermediate
  • 1,646
  • 12

Full instructions

An IoT device that could help keep the Sandy River Delta clean, as garbage is a very common problem.

Computer Vision Neural Network on Your Intel NUC / Linux Box
Intermediate
  • 385
  • 4

Work in progress

Want to turn your Intel® NUC, or any Linux box running Ubuntu into an artificially intelligent, IoT connected CCTV hub? Check this out!

Smart Garbage Monitoring System Using Arduino 101
Intermediate
  • 729
  • 5

Full instructions

A method in which waste management is automated. An innovative system that will help keep the city clean and healthy

Shower Regulator
Intermediate
  • 2,940
  • 3

Full instructions

Learn how to make a device to limit your shower time!

Christmas Gift Box
Intermediate
  • 3,678
  • 595

Full instructions

Christmas Gift Box plays music and sends an email when it is opened.

SensorBoat
Intermediate
  • 168
  • 2

Full instructions

An Arduino controlled boat that takes temperature, accelerometer, and light data from any body of water.

Sign up / LoginProjectsPlatformsTopicsContestsLiveAppsBetaFree StoreBlog