# Infrared Line/Object Presence sensor (Adjustable digital output)

**Type:** Product page · **SKU:** CE09445 · **Brand:** [Core Electronics](https://core-electronics.com.au/brands/core-electronics-australia)
**Page:** https://core-electronics.com.au/line-sensor-adjustable-threshold.html ([markdown](https://core-electronics.com.au/line-sensor-adjustable-threshold.html.md))

Why sit around and reflect when you can use this sensor? Perfect for line or object detection.

## Pricing

- **Price:** $1.40 (inc GST) — $1.27 AUD, exc GST
- **Quantity discounts:** 25+ $1.21 (exc GST) · 50+ $1.15 (exc GST) · 100+ $1.08 (exc GST)

## Availability & dispatch

- Available with a lead time — expect dispatch between Aug 31 and Sep 04.

## Description

Perfect for detecting a line, a hand (without making contact), and any other reflective object for that matter!

The sensors are great value and compatible with any microcontroller, adjust the potentiometer to change the sensitivity and get live feedback with the onboard LED.

### Specifications

- 3.3-5V Operating range
- Adjustable threshold output
- [LM393 Datasheet](https://core-electronics.com.au/attachments/uploads/CE09445-LM393-datasheet.pdf)

### Examples

#### Raspberry Pi Pico - Micropython

 ```
from utime import sleep
import machine

onboard_led = machine.Pin(25, machine.Pin.OUT)
line_sensor = machine.Pin(0, machine.Pin.IN)

while True:
    if line_sensor.value() == 0:
        onboard_led.on()
    else:
        onboard_led.off()
        sleep(0.1)
```

## Images

- [Product image 1](https://core-electronics.com.au/media/catalog/product/l/i/line-sensor.jpg)
