----------- [Ag_xtr_26] - 4-20mA example --------------------
Explanation: Basic example that turns on, reads and turns off the
sensor. Measured parameters are stored in the corresponding class
variables and printed by the serial monitor.
Copyright (C) 2019 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
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
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 .
Implementation: P.Moreno, J.Siscart
// Put your libraries here (#include ...)
SELECT THE RIGHT SOCKET FOR EACH SENSOR.
Possible sockets for this sensor are:
- XTR_SOCKET_F |---------|
Example: a 5TM sensor on socket A will be
[Sensor Class] [Sensor Name] [Selected socket]
Decagon_5TM mySensor (XTR_SOCKET_A);
Refer to the technical guide for information about possible combinations.
// object to manage _4_20mA
USB.println(F("4-20mA example for Smart Agriculture Xtreme"));
// It is mandatory to turn ON the board
USB.print(F("4-20mA sensor current: "));