LDR Module 4 Pin | Digital & Analog Light Sensor for Arduino
₹60.00 Original price was: ₹60.00.₹39.00Current price is: ₹39.00.
You save (%)
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
Arduino Portenta X8 – ABX00049
₹22,300.00Original price was: ₹22,300.00.₹15,400.00Current price is: ₹15,400.00.
You save (%)Read moreFeatures
- Combines Linux and real-time cores for flexibility and performance
- NXP® i.MX 8M Mini Cortex®-A53 quad-core + M7 real-time processor
- 4GB LPDDR4 RAM, 16GB eMMC storage
- Wi-Fi and Bluetooth 5.0 connectivity
- USB-C programming and power port
- Industrial-grade reliability and security features
- Supports Edge AI and machine learning applications
Digital Sensor TTP223B Module Capacitive Touch Switch
₹78.00Original price was: ₹78.00.₹20.00Current price is: ₹20.00.
You save (%)Add to cart- Power supply voltage(VCC): 2.0, 3, 5.5 V.
- Output high VOH: 0.8 Vcc
- Output low VOL: 0.3 Vcc
- Response time (touch mode) : 60 mS
- Response time (low power mode) : 220 mS
- Can replace the traditional touch of a button
- Four M2 screws positioning holes for easy installation
NODEMCU – ESP8266 Wifi Development Board
₹200.00Original price was: ₹200.00.₹150.00Current price is: ₹150.00.
You save (%)Read moreNodeMCU is an IoT Module based on the ESP8266 Wi-Fi module. NodeMCU uses the Lua Scripting language and is an open-source Internet of Things (IoT) platform. This module has a Ca H340g USB to TTL IC.
Specification of Node-MCU IoT Module:
- It is based on ESP8266, integrates GPIO, PWM, IIC, 1-Wire, and ADC all in one board.
- Power your development in the fastest way by combining with NodeMCU Firmware!
- USB-TTL included, plug&play
- 10 GPIO, every GPIO can be PWM, I2C, 1-wire
NRF24L01 2.4 MHz RF Transceiver Module
₹250.00Original price was: ₹250.00.₹99.00Current price is: ₹99.00.
You save (%)Add to cartSpecifications
- Low working voltage: 1.9 to 3.6 V
- I/O input voltage: 5V
- Wireless rate: 1 or 2 MBPS
- SPI interface rate: 0 to 8MBPS
- Transmission distance: 200 meters
- Dimensions: Width: 30 mm, Height: 10 mm, Depth: 20 mm
- Weight: 30 g







