LDR Module 4 Pin | Digital & Analog Light Sensor for Arduino
₹60.00 Original price was: ₹60.00.₹39.00Current price is: ₹39.00.
Features: LDR Module LM393 4 Pin
✅ 4-Pin Output: Provides both digital (D0) and analog (A0) outputs for flexibility in projects.
✅ LM393 Comparator: Fast, reliable switching for accurate light detection.
✅ Adjustable Sensitivity: Onboard potentiometer lets you set the light threshold easily.
✅ Wide Voltage Range: Operates on 3.3V–5V, compatible with Arduino, ESP32, Raspberry Pi, and microcontrollers.
✅ High Stability: Stable performance with precise light sensing in varying conditions.
✅ Indicator LED: Shows digital output state for quick testing and debugging.
✅ Compact Design: Easy to integrate into DIY and IoT projects.
Out of stock
How to Use the LDR Module LM393 4 Pin with Arduino for Light Sensing Projects
Introduction
Light sensing is essential for automating lights, saving energy, and creating interactive projects. The LDR Module LM393 4 Pin offers both digital and analog outputs, making it perfect for beginners and advanced makers using Arduino, ESP32, or Raspberry Pi.
In this guide, we’ll explore how this module works, its features, and how to use it in your projects.
What is the LDR Module LM393 4 Pin?
The module combines:
✅ An LDR (Light Dependent Resistor) to detect light.
✅ An LM393 comparator to provide a digital output when light crosses a threshold.
✅ An analog output (A0) to measure exact light levels.
This makes it more versatile than a 3-pin module, allowing both light detection and intensity measurement in your projects.
Key Features
- Digital and Analog Outputs (D0, A0)
- Adjustable Sensitivity via potentiometer
- Compatible with Arduino and ESP32
- Compact and easy to integrate
- Low power consumption
Applications: LDR Module LM393 4 Pin
✅ Automatic Street Lights: Turn lights on/off automatically based on ambient light levels.
✅ Smart Home Automation: Control curtains, lights, or alarms using real-time light sensing.
✅ Solar Tracking Systems: Adjust solar panels based on light intensity for maximum efficiency.
✅ Light-Based Alarms: Trigger buzzers or alerts when light levels drop suddenly (e.g., hand covering sensor).
✅ Data Logging Projects: Monitor and record light levels over time using the analog output.
✅ Smart Garden Systems: Activate grow lights or shading systems based on sunlight availability.
✅ Energy Saving Projects: Switch off unnecessary lights when sufficient daylight is available.
✅ Robotics: Use in line-following robots or light-seeking robots for learning projects.
✅ DIY Electronics Projects: Integrate into any light-based interactive system with Arduino, ESP32, or Raspberry Pi.
How to Connect LDR Module LM393 with Arduino
Pins:
- VCC → 5V on Arduino
- GND → GND
- D0 → Any digital pin (e.g., D2)
- A0 → Any analog pin (e.g., A0)
Arduino Code for LDR Light Sensor Module:
int digitalPin = 2;
int analogPin = A0;
void setup() {
pinMode(digitalPin, INPUT);
Serial.begin(9600);
}
void loop() {
int digitalValue = digitalRead(digitalPin);
int analogValue = analogRead(analogPin);
Serial.print(“Digital: “);
Serial.print(digitalValue);
Serial.print(” | Analog: “);
Serial.println(analogValue);
delay(500);
}
| Weight | 5 g |
|---|
Related products
-
2 Channel 5V Relay Module with Optocoupler
₹80.00Original price was: ₹80.00.₹62.00Current price is: ₹62.00.Add to cart⚡ 2 Channel 5V Relay Module with Optocoupler – Key Specifications
-
High-Current Relay Performance: Each relay can safely handle AC 250V up to 10A and DC 5V up to 10A, making it suitable for both household and industrial automation.
-
LED Status Indicators: Two built-in LEDs clearly show when each relay is activated, providing instant visual feedback for testing and operation.
-
Logic-Level Compatibility: Designed to work with 3.3V or 5V logic signals, making it fully compatible with Arduino, ESP32, Raspberry Pi, and other microcontrollers.
-
Opto-Isolation Protection: Equipped with optocoupler circuitry, this module protects your microcontroller from high-voltage spikes and electrical noise, ensuring safe, reliable, and stable switching.
-
User-Friendly Installation: Compact PCB with labeled terminals and indicator LEDs for quick setup and safe wiring.
Note: Product images are for illustrative purposes only and may differ slightly from the actual module. -
-
Mini Solderless Breadboard – 170 Tie Points
₹25.00Original price was: ₹25.00.₹14.00Current price is: ₹14.00.Add to cartFeatures
- 170 Tie Points – Suitable for small-scale circuits and quick experiments.
- Solderless & Reusable – Components can be inserted and removed easily.
- Durable Build – ABS plastic body with nickel-plated contacts ensures long life.
- Self-Adhesive Backing – Stick to any flat surface or inside project enclosures.
- Interlocking Design – Can be connected to other breadboards for expansion.
- Supports 20–29 AWG solid core jumper wires and standard components.
-
W1209 Digital Temperature Controller Thermostat Module
₹2,000.00Original price was: ₹2,000.00.₹1,500.00Current price is: ₹1,500.00.Add to cartW1209 Temperature Controller Module – Specifications
-
Type: Digital temperature controller / digital temp controller
-
Input Power: 12V DC
-
Measuring Input: NTC 10K 0.5% sensor
-
Waterproof Sensor: 0.5M probe
-
Output: 1-channel relay, 10A capacity
-
Temperature Range: -50°C to +110°C
-
Resolution: 0.1°C (-9.9 to 99.9°C), 1°C for other ranges
-
Measurement Accuracy: ±0.1°C
-
Control Accuracy: ±0.1°C
-
Refresh Rate: 0.5 seconds
-
-
BMP180 Digital Barometric Pressure Sensor Module
₹180.00Original price was: ₹180.00.₹36.00Current price is: ₹36.00.Add to cartFeatures
- Measures barometric pressure, altitude & temperature
- High precision: ±1 hPa (pressure), ±0.5°C (temperature)
- Pressure range: 300–1100 hPa
- Operating voltage: 1.8V–3.6V (3.3V typical)
- I²C interface for easy integration
- Low power consumption (<1 μA in standby)
- Compact & lightweight (~2 g)
- Compatible with Arduino, Raspberry Pi & other microcontrollers







