Things used in this project

Hardware components:
Photon new
Particle Photon
Scanalogic-2 EDU KIT
Adafruit Si7021
Software apps and online services:
ThingSpeak API
Optional, only for convenient validation.


Breadboard with Photon, Si 7021 and connections to the logic analyzer
The breadboard with the Particle Photon, the Adafruit Si7021 sensor and the connections to the Scanalogic-2 EDU KIT. For details see my project Measuring temperature and humidity with Particle Photon.
Si7021 scanalogic steckplatine xd3c1qgbzl


The code for the project. For details see my project Measuring temperature and humidity with Particle Photon.
// 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() {
    // 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);
    Particle.publish("humidity", humidity, PRIVATE);


Moritz Strube

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


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


Similar projects you might like

Drop of Life
  • 500
  • 16

Full instructions

A display to remind me when I can donate blood and save lives, powered by the Red Cross API and Particle.

IoT Drone - Part 2 - Sensors
  • 54
  • 1

Work in progress

Part 2 incorperates a GPS receiver, 10 DOF IMU, and Ultrasonic distance sensor to be used for flight controls.

How to run Particle on Raspberry Pi (Headless on Pi Zero W)
  • 1,433
  • 18


Use the most popular single-board computer with the most popular IoT tools.

Wireless Tank and Pump Monitoring System with Mobile App
  • 412
  • 3

Particle and Blynk to wirelessly monitor a 4,000 gallon water distribution system.

IoT Controlled Planter Lights
  • 463
  • 6

This is a shelf for starting plant seeds, controlled over the internet with automatic lights.

Your Wife is Hot!
  • 523
  • 6

Full instructions

Not hot like she looked at your browser history, hot as in temperature hot! This can be avoided with an A/C Condensate Monitoring System.

Your Wife is Hot!

Team Is it Summer Yet?

Add projectSign up / Login
Respect project