mirror of
https://github.com/esphome/esphome.git
synced 2024-11-25 08:28:12 +01:00
27 lines
561 B
YAML
27 lines
561 B
YAML
|
sensor:
|
||
|
- platform: adc
|
||
|
id: my_sensor
|
||
|
pin: 4
|
||
|
attenuation: 11db
|
||
|
- platform: resistance
|
||
|
sensor: my_sensor
|
||
|
configuration: DOWNSTREAM
|
||
|
resistor: 10kΩ
|
||
|
reference_voltage: 3.3V
|
||
|
name: Resistance
|
||
|
id: resist
|
||
|
- platform: ntc
|
||
|
sensor: resist
|
||
|
name: NTC Sensor
|
||
|
calibration:
|
||
|
b_constant: 3950
|
||
|
reference_resistance: 10k
|
||
|
reference_temperature: 25°C
|
||
|
- platform: ntc
|
||
|
sensor: resist
|
||
|
name: NTC Sensor2
|
||
|
calibration:
|
||
|
- 10.0kOhm -> 25°C
|
||
|
- 27.219kOhm -> 0°C
|
||
|
- 14.674kOhm -> 15°C
|