Smart Home Automation Forum
2wire 4-20ma water sensor - Printable Version

+- Smart Home Automation Forum (https://www.kincony.com/forum)
+-- Forum: Technical Support (https://www.kincony.com/forum/forumdisplay.php?fid=1)
+--- Forum: KC868-HxB series Smart Controller (https://www.kincony.com/forum/forumdisplay.php?fid=2)
+--- Thread: 2wire 4-20ma water sensor (/showthread.php?tid=343)



2wire 4-20ma water sensor - ajandali - 07-11-2021

Hi, I want to know if I can use KC868-COLB Logical Controller to measure water level using the 2wire 4-20ma water sensor. Picture below.


RE: 2wire 4-20ma water sensor - admin - 07-12-2021

[Image: attachment.php?aid=203]
KC868-COL/COLB/COLB-Mini support use analog sensor that 0-5V output, if you already have 4-20mA sensor. you can use a 250 Ohm resistance connect with signal input port and GND to convert.

To convert a mA analog input signal to voltage you need to attach a inline resistor. The size of your resistor will determine the output range of your voltage. 

Resistor Calculations are as follows:

Using ohms law V = R(I)  (Voltage = Resistance * Current)


If we were to scale a 4-20mA to 1-5V

For the 0 Value: .004 Amps * 250 ohms = 1 Volt

For the Max Value: .20 Amps * 250 ohms = 5 Volts


RE: 2wire 4-20ma water sensor - sheheryar - 02-28-2025

i Also have the same sensor and want to connect to my kc-868 server analogue input

the sensor has an output value of 0-10v
 
please guide me how to use it


RE: 2wire 4-20ma water sensor - admin - 03-03-2025

KC868-Server analog port only support 0-5v or 4-20mA signal analog sensor.
if you are using 0-10v sensor, you can try to find a convert module on market, let 0-10v convert to 0-5v signal.


RE: 2wire 4-20ma water sensor - sheheryar - 03-03-2025

the output from the senor is coming from 0-4v but it is not coming on the home assistant

This is my yaml configuration

- sensor:
- name: "Water Level (%)"
state_topic: 'server/42dd7407672e64273d439978/adc1'
unit_of_measurement: "%"
value_template: "{{ ((value | float) * 2) * 10 }}" # Converts 0-10V into 0-100%


- name: "Analog Digital Input 3"
state_topic: "server/7ffd88f939adfbe3340ee686/adc1"
unit_of_measurement: "V"

i am getting no values on home assistant.

my tank is smaller and i am getting values in between 0-5v maximum


RE: 2wire 4-20ma water sensor - admin - 03-03-2025

i think the mqtt topic only use for digital input and digital output ports, not by ADC.
you can use state_topic: 'server/42dd7407672e64273d439978/state' to check whether have value feedback.


RE: 2wire 4-20ma water sensor - sheheryar - 03-04-2025

i changed it still there are no values coming to it


RE: 2wire 4-20ma water sensor - admin - 03-05-2025

take a photo of your mqtt state feedback message.


RE: 2wire 4-20ma water sensor - sheheryar - 03-14-2025

here is the data received at analogue input 2

here is the change in data too

from 88 to 84