LilyPad Light Sensor Hookup Guide

Contributors: Gella
Favorited Favorite 2


The LilyPad Light Sensor is an e-textile friendly version of the Ambient Light Sensor Breakout. If you’ve used the breakout in a project before, the hookup and code will be very similar. You will need to connect to a LilyPad Arduino or other microcontroller to read the sensor values and use in your code.

This sensor outputs an analog value from 0 to 3.3V. In bright light (full daylight) this sensor will output 3.3V, and if completely covered will output 0V. In a typical indoor lighting situation, the sensor will output from around 1 to 2V.

LilyPad Light Sensor


To follow along with the code examples, we recommend:

Suggested Reading

To add this sensor to a project, you should be comfortable sewing with conductive thread and uploading code to your LilyPad Arduino. Here are some tutorials to review before working with this sensor:

What is a Circuit?

Every electrical project starts with a circuit. Don't know what a circuit is? We're here to help.


Light is a useful tool for the electrical engineer. Understanding how light relates to electronics is a fundamental skill for many projects.

Insulation Techniques for e-Textiles

Learn a few different ways to protect your conductive thread and LilyPad components in your next wearables project.

LilyPad Basics: E-Sewing

Learn how to use conductive thread with LilyPad components.

Getting Started with LilyPad

An introduction to the LilyPad ecosystem - a set of sewable electronic pieces designed to help you build soft, sewable, interactive e-textile projects.

If you have not used the TEMT6000 light sensor before, we recommend checking out the TEMT6000 Hookup Guide for basic information regarding that sensor.

TEMT6000 Ambient Light Sensor Hookup Guide

October 26, 2016

Bring the ability to detect light levels to any project with the SparkFun TEMT6000 Ambient Light Sensor Breakout.