Microfire LLC
Created January 7, 2020

Quickstart: EC Measurement

Everything you need to know to use μFire's EC Probe Interface to take an EC measurement.

Quickstart: EC Measurement

Things used in this project

Story

Read more

Code

Quickstart EC Code

C/C++
Minimal code to take an EC measurement. Copy and paste it into your Arduino IDE.
// include library's header file and declare a new instance
#include <uFire_EC.h>
uFire_EC ec;

void setup(){
    Serial.begin(9600);
}
void loop(){
    // `measureEC()` tells the sensor to take a reading
    ec.measureEC();

    // the measurement is held in a public class variable called mS
    Serial.print((String)"mS/cm: " + ec.mS);
    delay(1000);
}

Credits

Microfire LLC
12 projects • 78 followers
Creator of water quality sensors. Add the ability to measure pH, ORP, EC or salinity to your Arduino or Raspberry Pi project.
Contact

Comments

Please log in or sign up to comment.