Home › Forums › Mayfly Data Logger › Logging Mayfly with Decagon SDI-12 Sensor › Reply To: Logging Mayfly with Decagon SDI-12 Sensor
2021-06-10 at 3:28 PM
#15606
I am able to retrieve values from my Decagon ES2 sensor, but only temperature. Conductivity comes back with a value of 0.0. When I hook it up to a Campbell Scientific CR1000 logger, both conductivity and temperature come back with reasonable values. In fact, temperature is the same using the CR1000 as it is the Mayfly. I’m using the pre-programmed code for the Decagon from modular-sensors (see below). Any idea why the second location in the SDI array is returning but not the first?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
// ========================================================================== // Decagon ES2 Conductivity and Temperature Sensor // ========================================================================== #include <sensors/DecagonES2.h> const char* ES2SDI12address = "1"; // The SDI-12 Address of the ES2 const int8_t ES2Power = sensorPowerPin; // Power pin (-1 if unconnected) const int8_t ES2Data = 7; // The SDI12 data pin const uint8_t ES2NumberReadings = 5; // Create a Decagon ES2 sensor object DecagonES2 es2(*ES2SDI12address, ES2Power, ES2Data, ES2NumberReadings); // ========================================================================== // Creating the Variable Array[s] and Filling with Variable Objects // ========================================================================== /** Start [variable_arrays] */ Variable* variableList[] = { new ProcessorStats_SampleNumber(&mcuBoard), new ProcessorStats_FreeRam(&mcuBoard), new ProcessorStats_Battery(&mcuBoard), new MaximDS3231_Temp(&ds3231), new InSituRDO_DOpct(&insituRDO, "12345678-abcd-1234-ef00-1234567890aa"), new InSituRDO_DOmgL(&insituRDO, "12345678-abcd-1234-ef00-1234567890ae"), new InSituRDO_Temp(&insituRDO,"12345678-abcd-1234-ef00-1234567890ac"), new InSituRDO_Pressure(&insituRDO, "12345678-abcd-1234-ef00-1234567890ad"), new DecagonES2_Cond(&es2), new DecagonES2_Temp(&es2) |