Things used in this project

Hardware components:
Photon new
Particle Photon
With power supply.
×1
Adafruit Si7021
×1
Adafruit industries ada64 image 75px
Solderless Breadboard Half Size
With some jumper wires.
×1
Software apps and online services:
Hackster
ThingSpeak API
To store the measurement data.
IFTTT Particle Service
Optional, to send alerts to a user via Telegram messenger.
IFTTT Telegram Service
Optional, to send alerts to a user via Telegram messenger.
Telegram
Optional, to send alerts to a user via Telegram messenger.

Schematics

Project schematics
Schematics of the a breadboard with the Photon and the sensor.
Schematics mswxxe00ob

Code

CodeC/C++
Code to get access to the Si7021 sensor data using the Adafruit Si7021 library.
// Connect Vin to 3-5VDC
// Connect GND to ground
// Connect SCL to I2C clock pin (D1 on Photon/Electron)
// Connect SDA to I2C data pin  (D0 on Photon/Electron)


#include "Adafruit_Si7021.h"   // Use for Build IDE
// #include "Adafruit_Si7021.h"               // Use for local build

Adafruit_Si7021 sensor = Adafruit_Si7021();
double h;
double t;

void setup() {
    sensor.begin();
    
    // Variable for IFTTT
    Particle.variable("t", &t, DOUBLE);
    Particle.variable("h", &h, DOUBLE);
}

void loop() {
    
    h = sensor.readHumidity();
    t = sensor.readTemperature();
    
    // Publish data
    String temperature = String(t);
    String humidity = String(h);
    
    temperature = temperature.format("%1.2f", t);

    Particle.publish("temperature", temperature, PRIVATE);
    
    delay(30000);
     
    Particle.publish("humidity", humidity, PRIVATE);
 
    delay(30000);
}

Credits

5a72c17e1c96dc7d87a5b71454201325
Moritz Strube

I’m an experienced technology manager and business developer with deep interest in technology, innovation and science.

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

Control Adafruit NeoPixels using Python and JQWidgets
Easy
  • 912
  • 8

Full instructions

In this tutorial, we'll see how to control an Adafruit NeoPixel ring via mobile using Python and JQWidgets.

What's My I2C Address?
Easy
  • 241
  • 4

The story of how to make a clock through using a LCD 1602 or LCD 2004 over I2C.

I Keep My Cucumber Growing Conditions Moist - Part 3
Easy
  • 260
  • 3

Full instructions

This is the next step with an Particle Photon and softAP integration: cucumbers go online.

MyHumidity Controlled by BME280 and Photon
Easy
  • 514
  • 6

Full instructions

Checks if humidity threshold is reached and informs the user by using Blynk/IFTTT-services with softAP integration.

Study Buddy
Easy
  • 2,844
  • 141

Full instructions

Know when an assignment is coming up!

Study Buddy

Team Alexa and Shannon

MyLCD20x4 clock with value-added information
Easy
  • 39
  • 0

Full instructions

Use a Particle Photon, a BME280 sensor and a cheap LCD20x4 to start your own clock-project.

Add projectSign up / Login