Things used in this project

Hardware components:
Photon new
Particle Photon
×1
DFRobot Gravity: Analog Turbidity Sensor For Arduino
×1
10167 01
DHT22 Temperature Sensor
×1
Dallas Temp DS18B20
×1

Custom parts and enclosures

Enclosure File
The .ai of the enclosure in its final form.
709case_plans_Vr5pzu5MKn.ai

Schematics

Aqua Sensor Diagram
Sensor Diagram
lot_aqua_sensor_omWmcWopMB.fzz

Code

Aqua Sensor CodeArduino
Code for the particle microcontroller
// This #include statement was automatically added by the Particle IDE.
#include <Adafruit_DHT.h>

#define DHTPIN 0
#define DHTTYPE DHT22

DHT dht(DHTPIN, DHTTYPE);

int tSensor;
double tVolt;
double checkHum;
double checkTemp;
double hum;
double wTemp;

void setup()
{
    Serial.begin(9600);
    pinMode(DHTPIN, INPUT);
    Particle.variable("tVolt", tVolt);
    Particle.variable("hum", hum);
    Particle.variable("wTemp", wTemp);
}

void loop()
{
    tSensor = analogRead(A0);
    tVolt = tSensor * (5.0/1024.0);
    
    checkHum = dht.getHumidity();
    checkTemp = dht.getTempFarenheit();
    
    if (checkHum > 0 && checkHum < 100)
        hum = checkHum;
        
    if (checkTemp > 32 && checkTemp < 100)
        wTemp = checkTemp;

    Serial.println("Analog: " + String(tSensor) + " | " + String(tVolt) + "V");
    Serial.println("Temp: " + String(checkTemp));
    Serial.println("Hum: " + String(checkHum));
    
    Serial.println("--------------------");
    
    delay(500);
}

Credits

Photo
Paul Romano
-1 projects • 0 followers
Contact
79e3bb309fc8bfaadb689fc715b2db70
Eryk Cygielski
-1 projects • 0 followers
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

Sign up / LoginProjectsPlatformsTopicsContestsLiveAppsBetaBlog