Temperature
Reject NaN; never translate a failed read into zero.
The exact NodeMCU wiring, non-blocking sampling, secure WebSocket transport and failure behavior used in HomeAutoPro hardware regression.
Reject NaN; never translate a failed read into zero.
Sample DHT11 no faster than approximately 2.5 seconds.
The onboard LED is active-low, so PWM duty is inverted.
Keep socket.loop() non-blocking and acknowledge commands with applied state.
{"type":"telemetry","telemetry":{"temperature":28.4,"humidity":56.2}}