# 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

## 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)
