Home Environment Monitor

Introduction: Home Environment Monitor

In this project we are going to create a Home Environment Monitor.

This is a basic IOT project which uses a temperature, humidity, light and sound sensor with the GrovePi and graphs the live data coming from these sensors to the internet.

Step 1: List of What You Need

Step 2: Make the Connections

Stack the GrovePi over the GPIO pins on the Raspberry Pi and connect the light sensor to Analog Port A0, sound sensor to Analog Port A1 and the temperature and humidity sensor to Digital Port D4.

Step 3: Create an Account on Xively

Xivelyis a cloud service that we are going to use to send our data to the cloud and graph it there.

First we need to create a Xively account to send the sensor data to the cloud. To do this, go to xively.com and select Login

Step 4: Sign Up

Select Sign Up and fill out the form. You'll receive the credentials to access you Xively account shortly.

Step 5: Log In

Once you are logged in from your account, you should be able to see a screen similar to this with the Develop option. Select the develop option.

Step 6: Create a Device

A device is a basic block which you will be using to send the sensor data to Xively.

A device consists of various sensors all of which will be clubbed under one device.

Go ahead and select Add Device and enter the Device Name and Device Description. Making the device Public allows you to share the device's data and the graphs generated by it.

Once you have added the device, you should see it in the Devices tab.

Step 7: Adding the Sensor

Now, you need to add the sensor data to the device.

For this, open the device and then select Add channel. Each sensor will have it's own channel where it will be sending the data.

Add all the sensors you want to get data from to the channels. You need to provide the channel name which would be used to send data to Xively.

Step 8: Run the Program

Once the channels are set up, open the IOT project in the project folder on your raspberry Pi:

cd Desktop/GrovePi/Projects/IOT/

Copy the API key and feed ID from the Device page and update it in the GrovePi IOT script. and run the script:

sudo python grove_IOT.py

You should start seeing values being sent to Xively.

Step 9: Vizualizing the Data

Xively provides an easy way to visualize the data being sent to the cloud. Open the link to the Feed ID in the device page and you start getting a live chart of the data being sent to the cloud.

You can extend this project and add your own custom sensors and even add triggers to setup actions to be done automatically from your data.

Bracelet Challenge

Participated in the
Bracelet Challenge

Pi/e Day Contest

Participated in the
Pi/e Day Contest

Be the First to Share


    • Mason Jar Speed Challenge

      Mason Jar Speed Challenge
    • Bikes Challenge

      Bikes Challenge
    • Remix Contest

      Remix Contest

    3 Discussions


    Question 1 year ago

    Can someone do an updated version of this project as xively no longer exists! :(


    5 years ago on Introduction

    Awesome project! but why is it in the BRACELET CHALLENGE?!


    5 years ago on Introduction

    I love your instructable Do you think you could use this to monitor a saltwater fish tank?