Yl-105 Datasheet May 2026
Since no official YL-105 datasheet exists, here are the actual technical specs you need for circuit design and coding.
| Parameter | Value | | :--- | :--- | | Operating Voltage | 3.3V to 5V DC (5V recommended) | | Current Consumption | 15mA to 20mA (LED + IC) | | Output Type | Digital (0 or 1) + Analog (varies by reflection) | | Comparator Chip | LM393 (Open-collector digital output) | | Detection Range | 1mm to 15mm (optimal: 3-5mm for lines) | | Output Logic | Active LOW (0 = Object/White surface detected) | | PCB Size | Approx. 31mm x 14mm |
| Feature | YL-105 (Analog + Digital) | KY-003 (Magnetic Switch) | US1881 (Latching) | |---------|----------------------------|---------------------------|-------------------| | Output Type | Digital + Analog | Digital only | Digital (latching) | | Sensitivity Adjustment | Yes (potentiometer) | No | No | | Detectable Field Polarity | South pole only | South pole only | Both poles (latches) | | Best for | Adjustable proximity, RPM | Simple ON/OFF | Rotary encoders, door locks |
The YL-105 wins for flexibility due to its analog output and adjustable trigger point.
Read the AO pin with an ADC. The analog voltage will change as a magnet moves parallel to the sensor face. Calibrate the ADC reading to distance. This is not a high-precision linear encoder, but it works for coarse position feedback (e.g., throttle position, linear actuator feedback). yl-105 datasheet
Search the web or a marketplace (Amazon, AliExpress, eBay) for "YL-105 module". Look at the listing title to see what it detects. Common YL modules include:
| Module Code | Typical Function | |-------------|------------------| | YL-105 | Possibly temperature sensor (NTC thermistor + LM393) or laser receiver module? (Unconfirmed) | | YL-69 | Soil moisture | | YL-83 | Rain/water drop | | YL-38 | Metal touch sensor |
If you find a seller listing YL-105 as a "laser sensor" or "photoresistor module," that is your clue.
Because the YL-105 acts like a digital switch, wiring is simple. Since no official YL-105 datasheet exists, here are
Wiring:
Arduino Sketch:
const int sensorPin = 7; // Digital input const int ledPin = 13; // Built-in LEDvoid setup() pinMode(sensorPin, INPUT); pinMode(ledPin, OUTPUT); Serial.begin(9600);
void loop() int sensorState = digitalRead(sensorPin); Arduino Sketch: const int sensorPin = 7; //
if (sensorState == LOW) // Object or white surface detected digitalWrite(ledPin, HIGH); Serial.println("Detected!"); else digitalWrite(ledPin, LOW); Serial.println("Clear"); delay(100);
To read data from the YL-105, you do not need a specific library for the module itself, but rather a library for the protocol being used (e.g., RC Switch, VirtualWire).
Wiring:
Antenna: For the module to work effectively, you must attach an antenna.