Hi there,
I’m trying to get a accurate reading on a ESP32 GPIO port. I configured GPIO35 for ADC with a attenuation of -11db. This is the config:
sensor:
- platform: adc
pin: GPIO35
name: ${Buiten} Soil Moisture Kasje
id: soil_moisture_aardbeien
accuracy_decimals: 1
update_interval: 5s
icon: mdi:flower
unit_of_measurement: 'V'
attenuation: 11db
I supply 2 V from a good regulated powersupply. The powersupply is a test after several problems with a soil moisture sensor. After that I receive this in the log. Any ideas?
[13:16:29][D][sensor:094]: '${Buiten} Soil Moisture Kasje': Sending state 2.03100 V with 1 decimals of accuracy
[13:16:34][D][sensor:094]: '${Buiten} Soil Moisture Kasje': Sending state 1.47100 V with 1 decimals of accuracy
[13:16:39][D][sensor:094]: '${Buiten} Soil Moisture Kasje': Sending state 0.90300 V with 1 decimals of accuracy
[13:16:44][D][sensor:094]: '${Buiten} Soil Moisture Kasje': Sending state 0.14200 V with 1 decimals of accuracy
[13:16:49][D][sensor:094]: '${Buiten} Soil Moisture Kasje': Sending state 0.15800 V with 1 decimals of accuracy
[13:16:54][D][sensor:094]: '${Buiten} Soil Moisture Kasje': Sending state 0.14200 V with 1 decimals of accuracy
[13:16:59][D][sensor:094]: '${Buiten} Soil Moisture Kasje': Sending state 0.79900 V with 1 decimals of accuracy
[13:17:04][D][sensor:094]: '${Buiten} Soil Moisture Kasje': Sending state 0.89500 V with 1 decimals of accuracy
[13:17:09][D][sensor:094]: '${Buiten} Soil Moisture Kasje': Sending state 0.58000 V with 1 decimals of accuracy
[13:17:14][D][sensor:094]: '${Buiten} Soil Moisture Kasje': Sending state 0.14200 V with 1 decimals of accuracy
[13:17:19][D][sensor:094]: '${Buiten} Soil Moisture Kasje': Sending state 0.25500 V with 1 decimals of accuracy
[13:17:24][D][sensor:094]: '${Buiten} Soil Moisture Kasje': Sending state 0.14200 V with 1 decimals of accuracy
[13:17:29][D][sensor:094]: '${Buiten} Soil Moisture Kasje': Sending state 0.57900 V with 1 decimals of accuracy
[13:17:34][D][sensor:094]: '${Buiten} Soil Moisture Kasje': Sending state 0.74500 V with 1 decimals of accuracy
[13:17:39][D][sensor:094]: '${Buiten} Soil Moisture Kasje': Sending state 0.97900 V with 1 decimals of accuracy
[13:17:44][D][sensor:094]: '${Buiten} Soil Moisture Kasje': Sending state 0.69600 V with 1 decimals of accuracy
[13:17:49][D][sensor:094]: '${Buiten} Soil Moisture Kasje': Sending state 1.72700 V with 1 decimals of accuracy
[13:17:54][D][sensor:094]: '${Buiten} Soil Moisture Kasje': Sending state 1.76500 V with 1 decimals of accuracy
[13:17:59][D][sensor:094]: '${Buiten} Soil Moisture Kasje': Sending state 1.53500 V with 1 decimals of accuracy
[13:18:04][D][sensor:094]: '${Buiten} Soil Moisture Kasje': Sending state 1.31800 V with 1 decimals of accuracy
[13:18:09][D][sensor:094]: '${Buiten} Soil Moisture Kasje': Sending state 0.25900 V with 1 decimals of accuracy
[13:18:14][D][sensor:094]: '${Buiten} Soil Moisture Kasje': Sending state 1.32800 V with 1 decimals of accuracy