Raw Data Variables #

The following raw data variables are available for the Water Monkey. These variables can be used to analyse the raw device data and create custom analytics depending on the application. 

Variable NameAPI LabelUnit Description
AMBIENT_TEMPERATUREambient_temperature°CThe ambient temperature measured by the device during every leak update and heartbeat message. The temperature is measured with a resolution of 0.01 °C.
AMBIENT_TEMPERATURE_FAHRENHEITambient_temperature_fahrenheit°FThe ambient temperature measured by the device during every leak update and heartbeat message. The temperature is measured with a resolution of 0.018 °F.
HUMIDITYhumidity%rHThe humidity measured by the device during every leak update and heartbeat message. The humidity is measured with a resolution of 0.01 %rH.
PRESSUREpressurehPaThe barometric pressure measured by the device during every heartbeat message. The pressure is measured with a resolution of 0.1 hPa.

Internal Configuration and Device Management Variables #

The following Water Sniffer variables are used to control the functionality of the device and monitor device behaviour. Variables describing device health and connectivity are also available.

Variable NameAPI LabelUnit Description
BATTERY_INDICATION_BITbattery_indication_bitAn indication of whether the battery strength is good or bad. (1 = bad, 0 = good)
BATTERY_PERCENTAGEbattery_percentage%Latest averaged battery percentage level of the device.
BATTERY_VOLTAGEvbatmVLatest averaged battery level of the device.
CALIBRATED_MOISTURE_VALUEcalibrated_moisture_valuemVThe voltage threshold voltage used to determine if liquid was detected. Calibration takes place on boot, when a sensor gets connected and at every heartbeat. Calibration is based on the sensor type.
FIRMWARE_VERSIONverThe current firmware version of the device.
FRAME_COUNTframe_countThis is the number of messages transmitted by the device. This counter will reset when the device is reset.
GET_BLE_ENABLEget_ble_enableDevice will indicate if its Bluetooth is enabled or disabled. This value will be updated after a configuration change took place on the device. (1 = enabled, 2 = disabled)
GET_FLOOD_SENSOR_MOISTURE_ CALIBRATION_PERCENTAGEget_flood_sensor_moisture_ calibration_percentage%The percentage used to determine the Calibrated Moisture Value for the device during calibration. This value will be updated after a configuration change took place on the device.
GET_FLOOD_SENSOR_VOLTAGE_ VALUEget_flood_sensor_voltage_ valuemVThe voltage level used to determine if the connected sensor is a flood sensor. This value will be updated after a configuration change took place on the device.
GET_HEARTBEAT_INTERVAL_INDEXget_heartbeat_interval_indexDevice will indicate what its cloud update interval between heartbeat messages. This value will be updated after a configuration change took place on the device. (0 = 6 hours, 1 = 12 hours, 2 = 24 hours (default), 3 = 48 hours)
GET_LEAK_SENSOR_ MOISTURE_CALIBRATION_PERCENTAGEget_leak_sensor_moisture_ calibration_percentage%The percentage used to determine the Calibrated Moisture Value for the device during calibration. This value will be updated after a configuration change took place on the device.
GET_LEAK_SENSOR_VOLTAGE_VALUEget_leak_sensor_voltage_valuemVThe voltage level used to determine if the connected sensor is a leak (rope) sensor. This value will be updated after a configuration change took place on the device.
GET_LORAWAN_SUB_BANDget_lorawan_sub_bandThe LoRaWAN frequency sub-band that the device is operating on. This value will be updated after a configuration change took place on the device.
GET_MOISTURE_VOLTAGE_VALUEget_moisture_voltage_valuemVThe default voltage level used to determine if liquid is detected. This value will be updated after a configuration change took place on the device.
GET_NO_SENSOR_VOLTAGE_VALUEget_no_sensor_voltage_valuemVThe voltage level used to determine if no sensor is connected. This value will be updated after a configuration change took place on the device.
GET_SENSOR_MODE_INDEXget_sensor_mode_indexDevice will indicate what type of is connected. This is indicated with every message sent from the device. (0 = no sensor, 1 = leak sensor, 2 = flood sensor, 3 = unrecognised sensor)
GET_SENSOR_MODE_OVERWRITEget_sensor_mode_overwriteIndicates if sensor mode index override is enabled or disabled. This value will be updated after a configuration change took place on the device. (1 = enabled, 0 = disabled)
GET_TILT_SWITCH_VALID_ TRIGGER_COUNTget_tilt_switch_valid_ trigger_countSpecifies the amount of tilt sensor triggers required for a valid trigger. This value will be updated after a configuration change took place on the device.
GET_VIBRATION_SENSOR_ENABLEget_vibration_sensor_enableIndicates if the device's vibration sensor for tamper detection is enabled or disabled. This value will be updated after a configuration change took place on the device. (1 = enabled, 0 = disabled)
MEASURED_VALUEmeasured_valuemVThe sensor's voltage measured by the device.
RSSIrssidBmHow good the signal power (radio signal) is from the device to the closest gateway. 1
SIGNAL_QUALITY_CHECKsignal_quality_checkChecking the signal quality seen by the device. The variable value ranges from 0 to 20 to show the quality of the signal, based on RSSI, SNR, number of missed messages and number of rejoins. (0 – 5 = good, 5 – 10 = average, 10 – 20 = bad)
SNRsnrdBm(Signal to noise ratio) How good the radio signal to radio noise is from the device to the closest gateway. This is also used to determine signal quality and shouldn't be disregarded. 1dBm
SPREADING_FACTORspreading_factorThe spreading factor is determined by the device's proximity to the gateway since ADR (adaptive data rate) is implemented on the device. A lower spreading factor means that a lower transmit power is used and it is more battery efficient.
STATUSstatusIndicates the health status of the device. The variable's context will contain further information regarding the device's reset status. (0 = healthy, -1 = device reset)

1 Additional connectivity variables will also be available on the device depending on the number of gateways installed on site. These variables will be of the form rssi-cs-gt-XXX and/or snr-cs-gt-XXX. These variables will indicate which gateways (XXXX) can be seen by the device and the associated signal strength.

Alert Related Variables #

The following variables are related to the alert functionality and status of the device:

Variable NameAPI LabelUnit Description
BATTERY_ALERT_ENABLEDbattery_alert_enabledControls whether battery alerts should be sent on Ubidots. (1 = on, 0 = off)
DEVICE_ALERTdevice_alertIndicates that the device requires attention.
DEVICE_MISSED_UPDATE_BITdevice_missed_update_bitIndicates if the device has missed an update. Devices typically transmit a message every 24 hours. If the device hasn't sent a heartbeat message in the past 24 hours, then this variable will be set to 1.
DEVICE_OFFLINE_BITdevice_offline_bitIndicates if the device is offline. Devices typically transmit a message every 24 hours. If the device hasn't sent a heartbeat message in the past 24 hours and the DEVICE_MISSED_UPDATE_BIT is set to 1, then this variable will also be set to 1.
GET_HIGH_HUMIDITY_ALERT_ENABLEget_high_humidity_alert_enableIndicates if high humidity alerts are enabled (1) or disabled (0) on the device. This value will be updated after a configuration change took place on the device.
GET_HIGH_TEMPERATURE_ALERT_ ENABLEget_high_temperature_alert_ enableIndicates if high temperature alerts are enabled or disabled on the device. This value will be updated after a configuration change took place on the device. (1 = enabled, 0 = disabled)
GET_LEAK_ALERT_TIMEOUT_ENABLEget_leak_alert_timeout_enableIndicates if liquid detected alert timeouts are enabled or disabled on the device. This value will be updated after a configuration change took place on the device. (1 = enabled, 0 = disabled)
GET_LEAK_ALERT_TIMEOUT_ INTERVAL_INDEXget_leak_alert_timeout_interval_indexSpecifies the liquid detected alert timeout of the device. This value will be updated after a configuration change took place on the device. (0 = 30 minutes, 1 = 1 hour (default), 2 = 2 hours, 3 = 3 hours, 4 = 4 hours, 5 = 6 hours)
GET_LEAK_CONFIRMATION_ENABLEget_leak_confirmation_enableIndicates if liquid detection confirmations are enabled or disabled on the device. This value will be updated after a configuration change took place on the device. (1 = enabled, 0 = disabled)
GET_LEAK_CONFIRMATION_ TIMEOUT_VALUEget_leak_confirmation_ timeout_valuesSpecifies the liquid detection confirmation period of the device. This value will be updated after a configuration change took place on the device.
HIGH_HUMIDITY_ALERT_BIThigh_humidity_alert_bitIndicates if the measured humidity is elevated or normal. (1 = excess of 80 %rH, 0 = normal)
HIGH_TEMPERATURE_ALERT_BIThigh_temperature_alert_bitIndicates if the measured temperature is elevated or normal. (1 = excess of 35 °C / 95 °F, 0 = normal)
HUMIDITY_ALERT_ENABLEDhumidity_alert_enabledControls whether humidity alert should be sent on Ubidots. (1 = on, 0 = off)
HUMIDITY_ALERT_HIGH_THRESHOLDhumidity_alert_high_threshold%rHSets the high threshold on Ubidots for alerts in %rH.
HUMIDITY_ALERT_LOW_THRESHOLDhumidity_alert_low_threshold%rHSets the low threshold on Ubidots for alerts in %rH.
LIQUID_DETECTED_BITliquid_detected_bitIndicates if the device detected liquid, which can be a potential indication of a leak. (1 = liquid detected, 0 = no liquid detected)
REJOINED_NETWORK_24_HOURrejoined_network_24_hourVariable indicates if the device rejoined the network in the last 24 hours. (1 = rejoined the network in the last 24 hours, 0 = not rejoined the network in the last 24 hours)
SENSOR_DETECTED_BITsensor_detected_bitIndicates if a sensor is connected to the device as at the last message received from the device. (1 = sensor connected, 0 = no sensor connected)
SENSOR_DISCONNECTED_BITsensor_disconnected_bitIndicates if the device's sensor was disconnected since the last transmission from the device. (1 = disconnected, 0 = not disconnected)
TAMPER_ALERT_BITtamper_alert_bitIndicates if the device was tampered with. (1 = tamper detected, 0 = no tamper detected)
TEMPERATURE_ALERT_ENABLEDtemperature_alert_enabledControls whether temperature alert should be sent on Ubidots. (1 = on, 0 = off)
TEMPERATURE_ALERT_HIGH_ THRESHOLDtemperature_alert_high_ thresholdSets the high threshold on Ubidots for alerts
TEMPERATURE_ALERT_LOW_ THRESHOLDtemperature_alert_low_ thresholdSets the low threshold on Ubidots for alerts
What are your feelings
Updated on July 17, 2025