> For the complete documentation index, see [llms.txt](https://docs.acrome.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.acrome.net/electronics/add-on-modules/reflectance-sensor-module.md).

# Reflectance Sensor Module

<figure><img src="/files/w6Ow2R6SKIJgCFbHclVu" alt=""><figcaption><p>Reflectance Sensor Module</p></figcaption></figure>

Here is the [datasheet of the reflectance sensor (CNY70)](https://www.vishay.com/docs/83751/cny70.pdf) on the module.

<mark style="color:red;">The Reflectance Sensor Module</mark> is a tool that used to detect contrast on a surface. It works by detecting the reflectance of a surface using infrared light and differentiating the contrast by measuring the amount of reflected light to the ratio of emitted light. The most distinguishable surface colors are black and white, as in line-following robot parkours.&#x20;

The module has 3 reflectance sensors on it, positioned as left - middle - right, each sensor returns an analog value in the range of \[0, 255] to express the contrast level. This feature makes it a valuable tool to build a line follower robot system combined with PID controller.

<figure><img src="/files/J1OAFJF7XCWaRuOOxCCH" alt=""><figcaption></figcaption></figure>

#### Step Files:

{% file src="/files/DjiQTkUkDNOBzYD2xxBd" %}
