Hi, I am using Home Assistant & ESPHome and I am using ESP8266 for flow meters (very nice as it has integrated counter) and other readings and would like to add the ORP sensor on it.
I connected +3.3V and GND from ESP + SIG to A0 analogiq input of ESP
Simple code for testing
sensor:
- platform: adc
pin: A0
name: "Redox Meter Out"
id: redox_meter_out
accuracy_decimals: 6
update_interval: 1s
I dont need 1 sec, jut for testing.
And I get strange results… zero values most of the time, and random values when I get one
[19:30:33][D][sensor:126]: 'Redox Meter OUT': Sending state 0.00000 V with 6 decimals of accuracy
[19:30:34][D][sensor:126]: 'Redox Meter OUT': Sending state 0.28516 V with 6 decimals of accuracy
[19:30:35][D][sensor:126]: 'Redox Meter OUT': Sending state 0.00000 V with 6 decimals of accuracy
[19:30:36][D][sensor:126]: 'Redox Meter OUT': Sending state 0.00000 V with 6 decimals of accuracy
[19:30:37][D][sensor:126]: 'Redox Meter OUT': Sending state 0.00000 V with 6 decimals of accuracy
[19:30:38][D][sensor:126]: 'Redox Meter OUT': Sending state 0.34082 V with 6 decimals of accuracy
[19:30:39][D][sensor:126]: 'Redox Meter OUT': Sending state 0.00000 V with 6 decimals of accuracy
[19:30:40][D][sensor:126]: 'Redox Meter OUT': Sending state 0.00000 V with 6 decimals of accuracy
[19:30:41][D][sensor:126]: 'Redox Meter OUT': Sending state 0.00000 V with 6 decimals of accuracy
[19:30:42][D][sensor:126]: 'Redox Meter OUT': Sending state 0.00000 V with 6 decimals of accuracy
[19:30:43][D][sensor:126]: 'Redox Meter OUT': Sending state 0.00000 V with 6 decimals of accuracy
[19:30:44][D][sensor:126]: 'Redox Meter OUT': Sending state 0.00000 V with 6 decimals of accuracy
[19:30:45][D][sensor:126]: 'Redox Meter OUT': Sending state 0.84570 V with 6 decimals of accuracy
[19:30:46][D][sensor:126]: 'Redox Meter OUT': Sending state 0.00000 V with 6 decimals of accuracy
[19:30:47][D][sensor:126]: 'Redox Meter OUT': Sending state 0.55176 V with 6 decimals of accuracy
[19:30:48][D][sensor:126]: 'Redox Meter OUT': Sending state 0.00000 V with 6 decimals of accuracy
[19:30:49][D][sensor:126]: 'Redox Meter OUT': Sending state 0.55371 V with 6 decimals of accuracy
[19:30:50][D][sensor:126]: 'Redox Meter OUT': Sending state 0.00000 V with 6 decimals of accuracy
[19:30:51][D][sensor:126]: 'Redox Meter OUT': Sending state 0.10547 V with 6 decimals of accuracy
[19:30:52][D][sensor:126]: 'Redox Meter OUT': Sending state 0.84570 V with 6 decimals of accuracy
[19:30:53][D][sensor:126]: 'Redox Meter OUT': Sending state 0.00000 V with 6 decimals of accuracy
[19:30:54][D][sensor:126]: 'Redox Meter OUT': Sending state 0.00000 V with 6 decimals of accuracy
[19:30:55][D][sensor:126]: 'Redox Meter OUT': Sending state 0.00000 V with 6 decimals of accuracy
[19:30:56][D][sensor:126]: 'Redox Meter OUT': Sending state 0.84570 V with 6 decimals of accuracy
[19:30:57][D][sensor:126]: 'Redox Meter OUT': Sending state 0.00000 V with 6 decimals of accuracy
[19:30:58][D][sensor:126]: 'Redox Meter OUT': Sending state 0.00000 V with 6 decimals of accuracy
Any idea what I did wrong ?
I have another ORP sensor on another ESP (same model), one yeard old, which is working nicely with same config (Redox Meter IN)
[19:35:40][D][sensor:126]: 'Redox Meter IN': Sending state 0.72363 V with 6 decimals of accuracy
[19:36:10][D][sensor:126]: 'Redox Meter IN': Sending state 0.72266 V with 6 decimals of accuracy
[19:36:40][D][sensor:126]: 'Redox Meter IN': Sending state 0.72266 V with 6 decimals of accuracy
etc
/Klona