47 void setup()
override;
sensor::Sensor * temperature_sensor_
void set_dht_model(DHTModel model)
Manually select the DHT model.
Component for reading temperature/humidity measurements from DHT11/DHT22 sensors. ...
sensor::Sensor * humidity_sensor_
This class simplifies creating components that periodically check a state.
float get_setup_priority() const override
HARDWARE_LATE setup priority.
void dump_config() override
void set_humidity_sensor(sensor::Sensor *humidity_sensor)
void set_model(DHTModel model)
void set_temperature_sensor(sensor::Sensor *temperature_sensor)
bool read_sensor_(float *temperature, float *humidity, bool report_errors)
void setup() override
Set up the pins and check connection.
void update() override
Update sensor values and push them to the frontend.
void set_pin(InternalGPIOPin *pin)
Implementation of SPI Controller mode.
Base-class for all sensors.