The light sensor on the Circuit Playground Express is in the upper left corner above push button A marked with an eye and A8.

The light sensor returns a relative value, not a calibrated reading. The light sensor is very good at reading values and having values compared, such that a determination is made if the environment is darker (less light detected) or lighter (more light detected).

The next pages will show you how to use the light sensor both in MakeCode and CircuitPython.

This guide was first published on Jul 26, 2018. It was last updated on Nov 30, 2023.

This page (Using the Light Sensor) was last updated on Jul 18, 2018.

Text editor powered by tinymce.