The YL105 datasheet reveals a sensor that is better for 80% of hobbyist and commercial indoor projects . It is robust, forgiving, and cheap. When paired with proper timing code and a clean power supply, it rivals sensors twice its price.
| If you need... | Choose YL105 | Choose DHT22/BME280 | | :--- | :--- | :--- | | Lowest cost for multi-node networks | ✅ | ❌ No | | 3.3V native operation (ESP32) | ✅ Yes | ⚠️ Needs level shifter | | Sub-1-second read intervals | ✅ Yes | ❌ No (2 sec limit) | | Laboratory-grade accuracy (2% RH) | ❌ No | ✅ Yes | | Outdoor weatherproofing | ❌ No | ✅ Yes (with housing) | yl105 datasheet better
// Datasheet threshold: 30 µs is the boundary if(duration > 30) byte *data = byte; return true; The YL105 datasheet reveals a sensor that is
| Parameter | Symbol | Value | Your code must... | | :--- | :--- | :--- | :--- | | Start signal low time | Tbe | > 18 ms | Pull pin LOW for 20ms (not 1ms) | | Sensor response low | Trel | 80 µs | Wait for pin to go LOW | | Sensor response high | Treh | 80 µs | Wait for pin to go HIGH | | Bit "0" high time | Tbit_0 | 24-28 µs | Sample after 30 µs | | Bit "1" high time | Tbit_1 | 70-74 µs | Sample after 50 µs | | If you need