Development v12

Warning - Product Update

All the resources present on this section belong to Waspmote v12, Waspmote Plug & Sense! v12 and Meshlium v3.8.

If you have a Waspmote v15, Waspmote Plug & Sense! v15 or Meshlium v4.0 please go to the new Development Section.

Check what is your version and what are the differences between the old and the new one in this document.

» SW 03: Dissolved Ions (v12)

Turn on the Smart Water Board and reads the DI sensor printing the result through the USB

Required Materials

1 x Waspmote
1 x Battery
1 x Smart Water Sensor Board
1 x Dissolved Ions Sensor


- If the sensor has been kept stored for long it may take longer to reach a steady output.
- Calibration and conversion options are not offered since Libelium has not access to calibration solutions.
- This example is valid for Waspmote v12


 *  ------ [SW_03] - DI sensor Reading for Smart Water-------- 
 *  Explanation: Turn on the Smart Water Board and reads the DI sensor
 *  printing the result through the USB
 *  Copyright (C) 2014 Libelium Comunicaciones Distribuidas S.L. 
 *  This program is free software: you can redistribute it and/or modify 
 *  it under the terms of the GNU General Public License as published by 
 *  the Free Software Foundation, either version 3 of the License, or 
 *  (at your option) any later version. 
 *  This program is distributed in the hope that it will be useful, 
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of 
 *  GNU General Public License for more details. 
 *  You should have received a copy of the GNU General Public License 
 *  along with this program.  If not, see <>. 
 *  Version:           2.1
 *  Design:            David Gascón 
 *  Implementation:    Ahmad Saad

#include <WaspSensorSW.h>

float value_di;
float value_calculated;

DIClass DISensor;

void setup()
  // Turn ON the Smart Water sensor board and start the USB

void loop()
  // Reading of the DI sensor
  value_di = DISensor.readDI();

  // Print of the results
  USB.print(F(" DI Output Voltage: "));


DI Output Voltage: 2.0446844959
DI Output Voltage: 2.0430285835
DI Output Voltage: 2.0406554126
DI Output Voltage: 2.0361763286
DI Output Voltage: 2.0507420635
DI Output Voltage: 2.0504796314
DI Output Voltage: 2.0636882305
DI Output Voltage: 2.0666748809
DI Output Voltage: 2.0653239631
DI Output Voltage: 2.0706646537
DI Output Voltage: 2.0712147140
DI Output Voltage: 2.0777980566
DI Output Voltage: 2.0499948120
DI Output Voltage: 2.0430341958
DI Output Voltage: 2.0433082628

Quick Publish: