somebody knows how can i implement this sensor in arduino to use in weather level measurement? I know i must use the sensor range vs mA, but i dont know where start. I appreciate your help.
Specifications:
Sensor Range: WL705-012 4” (.33’) - 144” (12’)
Supply Voltage: 10-30VDC (sensitivity reduced below 15 VDC)
Supply Current: 40mA
Averaging Time: 15 seconds
Temperature: -40º to +158º F Output Current:
4mA, maximum distance
20mA, minimum distance
Connections: Brown +15-30VDC
Blue Ground
Green 4-20mA output (WL705-048)
Black 4-20mA output (WL705-012 & WL705-003)
If I understand this correctly you have a 4-20 mA output. To read that output, connect it to a 125Ω resistor as load, then measure the resulting voltage over that resistor on an analog pin. 4 mA = 0.5V = ADC reading 102, 20 mA = 5V = ADC reading 1023.
Assuming 4 mA = 4", 20 mA = 144", use map() to convert ADC reading to height.