Source: https://mokxi.com/ideas/ldrmodule-projects
Updated: 2026-11-17

Projects / Project ideas
Project ideas by part

# Projects with a light sensor module

14 Mokxi projects use a light sensor module (10 beginner, 1 intermediate and 3 advanced). They run on Arduino Uno, ESP32 and Arduino Mega boards. Here are all of them, from “Dusk switch” to “Mars rover”. Each card says what the project does, the board and parts it needs and its level, and Open in the simulator runs it in your browser in one click, with no account.

First project

## How to pick your first one

- Start with “Dusk switch”, a beginner project that needs a light sensor module.
- Arduino Uno runs 10 of them, ESP32 3 and Arduino Mega 1. Start on the board you have, or on an Arduino Uno if you are buying one.
- The parts used most here are the LED (5 projects), the piezo speaker (4) and the WS2812 NeoPixel LEDs (4). With those on hand, most of this list is open to you.
- Before you build one on a real bench, open the photoresistor module part page for its pins and what each one does.

Projects

## 14 projects ready to run

### Dusk switch

A photoresistor sensor module turns a lamp on at dusk: its comparator output switches the LED, and its analog output shows the light.

Board

Arduino Uno R3

Parts

Photoresistor module

Level

Beginner

Open in the simulator

### Lunar New Year lantern

A ring of WS2812B LEDs inside a red paper lantern glows red with flickers of gold like a candle, and a light sensor turns it on at dusk.

Board

Arduino Uno R3

Parts

Photoresistor module, resistor, WS2812 NeoPixel LEDs

Level

Beginner

Open in the simulator

### Photocell module on A0

A photoresistor module’s analog output on A0, printed twice a second: more light, a different number. Drag the light level and watch it change.

Board

Arduino Uno R3

Parts

Photoresistor module

Level

Beginner

Open in the simulator

### Light-seeking robot

A two-wheel robot with a photoresistor module on each front corner.

Board

Arduino Uno R3

Parts

L298N motor driver, 2WD robot car chassis, photoresistor module

Level

Beginner

Open in the simulator

### Plant sensor for Home Assistant

A capacitive soil sensor mapped between two calibration readings, a light level, and a thirsty LED with two thresholds so it does not flicker.

Board

ESP32-C3-DevKitM-1

Parts

Photoresistor module, capacitive soil moisture sensor, resistor, LED

Level

Beginner

Open in the simulator

### Crescent and star lantern

Ten LEDs of a WS2812B ring glow as a warm crescent moon beside a twinkling LED star, and a light sensor lights the lantern at dusk.

Board

Arduino Uno R3

Parts

Photoresistor module, resistor, WS2812 NeoPixel LEDs, LED

Level

Beginner

Open in the simulator

### Lights-out reminder

A PIR and a light sensor notice when a room is lit and nobody has moved for a while.

Board

Arduino Uno R3

Parts

PIR motion sensor, photoresistor module, resistor, LED, piezo speaker

Level

Beginner

Open in the simulator

### Egg hunt finder

A hot and cold finder for glowing eggs hidden in a dim room: a light sensor measures the change.

Board

Arduino Uno R3

Parts

Photoresistor module, resistor, WS2812 NeoPixel LEDs, piezo speaker

Level

Beginner

Open in the simulator

### Kind words night light

When the room goes dark a ring of WS2812B LEDs fades up to soft amber and a 16x2 LCD shows a kind note.

Board

Arduino Uno R3

Parts

Photoresistor module, push button, resistor, WS2812 NeoPixel LEDs, I2C LCD

Level

Beginner

Open in the simulator

### PIR motion light with a relay

After dark, an HC-SR501 PIR switches a 12 V lamp on through a relay, and it goes off 20 s after the last movement; a light sensor keeps it off by day.

Board

Arduino Uno R3

Parts

PIR motion sensor, photoresistor module, relay module, DC jack and adapter, filament lamp

Level

Beginner

Open in the simulator

### Radar hallway sensor

An RCWL-0516 radar holds a hallway "occupied" for ten seconds after the last movement and lights the lamp only when it is dark.

Board

ESP32-C3-DevKitM-1

Parts

Photoresistor module, microwave motion sensor, resistor, LED

Level

Intermediate

Open in the simulator

### Desk buddy robot

Animated robot eyes on a round GC9A01: it blinks and glances about, beams when you stroke it, gets dizzy when rocked and lonely when ignored.

Board

ESP32-C3-DevKitM-1

Parts

GC9A01 round display, MPU6050 accelerometer and gyro, touch sensor, photoresistor module, piezo speaker

Level

Advanced

Open in the simulator

### Escape-room puzzle box

Five puzzles in ten minutes: a keypad code, a magnet key, the right RFID card, a tilt sequence and three flashes of light.

Board

Arduino Mega 2560 R3

Parts

4x4 keypad, reed switch, piezo speaker, MPU6050 accelerometer and gyro, servo motor, +6 more

Level

Advanced

Open in the simulator

### Mars rover

A rover that drives three waypoints by dead reckoning, steers around hazards it sees with a sonar mast, samples soil and light.

Board

Arduino Uno R3

Parts

L298N motor driver, 2WD robot car chassis, push button, SSD1306 OLED display, VL53L0X time-of-flight sensor, +3 more

Level

Advanced

Open in the simulator

Keep going

## Wiring, libraries and more ideas

The photoresistor module part page Every project ideas list

### Library pages

- Adafruit NeoPixel library
- Adafruit GFX library
- LiquidCrystal I2C library
- Servo library
- Adafruit GC9A01A library
- Adafruit SSD1306 library

### More project ideas

- Arduino Uno project ideas
- ESP32 project ideas
- Arduino Mega project ideas
- LED projects for Arduino, ESP32 and Pico
- Projects with a piezo speaker
- NeoPixel projects
- Projects with a push button
- Projects with a robot car chassis
- Projects with an L298N motor driver
- Projects with an MPU6050
