Getting Started with Light Sensor Module (SN-LIGHT-MOD)

Photosensitive resistor module(SN-LIGHT-MOD) is most sensitive to environmental light intensity. This SN-LIGHT-MOD is generally used to detect the ambient brightness and light intensity.This tutorial will show you the basic operation on how to use this sensor.

Last Updated on 6 July 2017
This article is written by internship student Tian Fu Loke


SN-LIGHT-MOD is a photosensitive resistor module, suitable to detect environmental light intensity and ambient brightness. Its sensitivity can be tuned with an on board potentiometer, where turning it clockwise will increase the sensitivity and increase the detection range.

FEATURES of Light Sensor Module (SN-LIGHT-MOD)

  • Comes with a high-quality light dependent resistor (LDR).
  • Equipped with an on-board potentiometer to adjust light brightness threshold.
  •  Digital output
  • Fixed bolt hole for convenient installation
  • Uses LM393 wide range voltage comparator
  • LED indicator – ON when ambient light exceeds threshold
  • Operating Voltage is 3.3-5 V
  • Dimensions: 3.2cm x 1.4cm


To introduce the basic steps on how to use SN-LIGHT-MOD with Arduino UNO to detect the light brightness in the environment and decide to switch OFF or ON light.



Arduino IDE


Set up your hardware based on the picture below (Analog and Digital pin assignment may vary according to your needs.)


int ldrPin = 7;
int ledPin= 12;
int val = 0;
void setup() {
  pinMode(ldrPin, INPUT);
  pinMode(ledPin, OUTPUT);
void loop() {
  int val = digitalRead(ldrPin);
  if(val == HIGH ){
    digitalWrite(ledPin, HIGH);
    Serial.println("LED ON");
    digitalWrite(ledPin, LOW);
    Serial.println("LED OFF");


Note: For further inquiry, please visit our technical forum as we seldom check the comment here. ?

4 thoughts on “Getting Started with Light Sensor Module (SN-LIGHT-MOD)”

  1. Hi

    Please, Can You share me the fritzing part of the light sensor module?

    Thanks, Benny

Leave a Comment

Your email address will not be published.

Share this Tutorial

Share on facebook
Share on whatsapp
Share on email
Share on print
Share on twitter
Share on pinterest
Share on facebook
Share on whatsapp
Share on email
Share on print
Share on twitter
Share on pinterest

Latest Tutorial

Gas Detector Using The MQ2 Sensor on Maker NANO
Control NeoPixel RGB LED Color Code Using Keypad and Maker Nano
Audio Doorbell Using M5GO IoT Starter Kit
Monitor Temperature Humidity via SMS Using M5Stack and SIM800L
Add text in STL file using Fusion360
Scroll to Top