> **Source:** Core Electronics is an Australian maker-electronics retailer and manufacturer based in Newcastle, NSW, run by a team of makers and educators. We design and manufacture our own product lines (PiicoDev, CE originals) and are official retailers for iconic maker and industrial brands including Raspberry Pi, Arduino, Adafruit, SparkFun and DFRobot. Orders ship Australia-wide from our Newcastle warehouse. Prices are in AUD and include GST. Pricing, stock and dispatch on this page are generated from the store's live catalog. Full machine-readable index: https://core-electronics.com.au/llms.txt

# Makerverse IR Line Sensor

**Type:** Product page · **SKU:** CE08493 · **Brand:** [Makerverse](https://core-electronics.com.au/brands/makerverse-brand)
**Page:** https://core-electronics.com.au/makerverse-ir-line-sensor.html ([markdown](https://core-electronics.com.au/makerverse-ir-line-sensor.html.md))

## Retired product

This product is retired and no longer available for purchase. Replaced by: SS101020174.

**Replacement:** https://core-electronics.com.au/catalog/product/view/sku/SS101020174

## How to buy

- **Search the catalogue:** `https://core-electronics.com.au/search/{query}.md` (URL-encode the query; pages 2-3 at `search/{query}/{page}.md`; `search.md?q=` also works)
- **Payment methods, purchase orders, policies and contact details:** https://core-electronics.com.au/llms.txt
## Description

If you're making a line-following robot check out these analog line sensors!

*Note: Requires headers; we recommend [right angle headers](https://core-electronics.com.au/connectors-sockets/headers.html#category_963)*

### Construct a line...

- Use tape
- Black Texta
 
### Specifications

- Dimensions: 9mm x 40mm x 3.5mm
- Mounting Holes: 2x 3.2mm holes, 21.2mm apart
- Recommended Mounting height: 7mm+ from the bottom of the sensor
- Supply Voltage: 3.3V
- Analog output range: 0 - 3.3V
- [Datasheet](https://core-electronics.com.au/attachments/uploads/CE08493-Everlight-Elec-ITR8307-S17-TR8-B.pdf)
 
**Example Code (MicroPython)**

 ```
# Example for detecting a line using the Makerverse IR Line Sensor

from machine import ADC
from utime import sleep

line_sensor = ADC(28) # Use any of the 3 ADC channels on the Pico

line_threshold = 45000 # Set this according to your ambient conditions

while True:
    line_sensor_value = line_sensor.read_u16() # Get a reading from the ADC
    # print(line_sensor_value) # Uncomment this line to find the threshold
    
    if line_sensor_value > line_threshold: # 
        print('Line detected!')
        # TODO: Anything! Put your code here!
        
    sleep(0.2)
```

 ![](https://core-electronics.com.au/media/wysiwyg/product_info/makerverse-labs-banner.jpg)![](https://core-electronics.com.au/media/wysiwyg/product_info/makerverse-labs-banner.jpg)

## Images

- [Product image 1](https://core-electronics.com.au/media/catalog/product/m/a/makerverse-ir-line-sensor-45.jpg)
