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

Map Your Particles!
Easy
  • 609
  • 16

Protip

Locate your Particle Photons, P1s and Electrons on a map without needing extra hardware. Use Ubidots or an offline map alternative

Sending Photos and Video Over the Internet!
Easy
  • 2,012
  • 28

Full instructions

Record video, perform object and face recognition, take a time-lapse or whatever else with a Particle Photon and the 5-megapixel Arducam!

Text Machine, Get Gumball
Easy
  • 61
  • 1

This project describes how to build an Arduino-based, text-controlled gum dispenser

Power Supply Module 3.3V and 5V
Easy
  • 159
  • 0

Protip

First test of a separate Power Supply Module 3.3V and 5V

MyPIR-Sensor Informs Me Via IFTTT
Easy
  • 300
  • 1

Full instructions

Cheap & easy alarm-system.

Study Buddy
Easy
  • 2,713
  • 141

Full instructions

Know when an assignment is coming up!

Study Buddy

Team Alexa and Shannon

Add projectSign up / Login