measureEC

float uFire-MOD_EC::measureEC(float temp_C=25, float temp_constant=25);

Starts an EC measurement.

Parameters

  • temp_C - temperature in Celsius of the solution under test. Optional, defaults to 25 C.
  • temp_constant - temperature in Celsius to adjust the measurement to. Optional, defaults to 25 C.

Returns

float - electrical conductivity in millisiemens (mS)

Examples

Arduino C++

#include <uFire-MOD_EC.h>
uFire-MOD_EC ec;

void setup() {
    ec.begin();
}

void loop() {
    ec.measureEC(); // no temperature passed, try to avoid this since it is very innaccurate.
    ec.measureEC(21.0); // 21.0 being sourced from a temperature sensor in the solution under test.
    ec.measureEC(15.0, 20.0); // adjust to 20 C rather than the default of 25 C.
}

Python

from uFire_ISE import uFire_ISE
mv = uFire_ISE()

mv.measuremV()
print("mV: " + str(mv.mV))

NMEA

$UFEC*00
$UFEC,21.0*00
$UFEC,15.0,20.0*00

See Also

C++ Class Initialization
Python Class Initialization
begin()
NMEA Connection Settings