option.
[18:11:45][D][sensor:094]: ‘Living Room Temperature’: Sending state nan °C with 1 decimals of accuracy
[18:11:45][D][sensor:094]: ‘Living Room Humidity’: Sending state nan % with 0 decimals of accuracy
[18:12:11][D][api:102]: Accepted 192.168.1.13
[18:12:11][W][api.connection:083]: 192.168.1.13: Socket operation failed: HANDSHAKESTATE_READ_FAILED errno=11
[18:12:45][W][dht:169]: Requesting data from DHT failed!
[18:12:45][W][dht:060]: Invalid readings! Please check your wiring (pull-up resistor, pin number) and consider manually specifying the DHT model using the model option.
[18:12:45][D][sensor:094]: ‘Living Room Temperature’: Sending state nan °C with 1 decimals of accuracy
[18:12:45][D][sensor:094]: ‘Living Room Humidity’: Sending state nan % with 0 decimals of accuracy
[18:12:47][I][ota:117]: Boot seems successful, resetting boot loop counter.
[18:12:47][D][esp32.preferences:114]: Saving 1 preferences to flash…
[18:12:47][D][esp32.preferences:143]: Saving 1 preferences to flash: 0 cached, 1 written, 0 failed
[18:13:11][D][api:102]: Accepted 192.168.1.13
[18:13:11][W][api.connection:083]: 192.168.1.13: Socket operation failed: HANDSHAKESTATE_READ_FAILED errno=11
It needs to be connected between the pins on the sensor. This can be done either where it is connected to.the esp or directly on the sensor. So gpio3 to vcc.
It also tells you in the log line 18:12:45. When ever I get that message just adding a resistor sorts it out. But the easy way is to buy you sensors already mounted on a small board as they have the pull up built in.
In my experience, just reboot and that will disappear, may take a couple of boots. This is assuming you have set the api in the code and connected that to HA with said API code.
I have just been having this issue with one of my d1 minis Every time I update it it does this fault a few times but settles down soon. I either just leave it for an hour or so before i look again at its output or reboot it a few times.
Finally, it working – Socker error will not fix - there might be some bug or compatibility issue
Manually discover the Device in ESPhome with ip add of sensor