{"product_id":"dusk-to-dawn-light-detection-sensor-module-for-home-automation","title":"Dusk to Dawn Light Detection Sensor Module for Home Automation","description":"\u003ch1\u003eLight Detection and Switching Sensor Module – Dusk to Dawn\u003c\/h1\u003e\u003cp\u003eThis sensor module uses an LDR (light-dependent resistor) and an LM393 comparator to detect ambient light levels. It provides a clean digital output that switches state when light crosses a user-adjustable threshold, making it ideal for automating lights based on day\/night conditions. The board also exposes the analog LDR reading for more nuanced control.\u003c\/p\u003e\u003ch2\u003eKey Specifications\u003c\/h2\u003e\u003ctable\u003e\n\u003cthead\u003e\u003ctr\u003e\n\u003cth\u003eSpecification\u003c\/th\u003e\n\u003cth\u003eValue\u003c\/th\u003e\n\u003c\/tr\u003e\u003c\/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd\u003eOperating Voltage\u003c\/td\u003e\n\u003ctd\u003e3.3V – 5V DC\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eComparator IC\u003c\/td\u003e\n\u003ctd\u003eLM393\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eOutput Type\u003c\/td\u003e\n\u003ctd\u003eDigital (DO) and Analog (AO)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eAdjustable Sensitivity\u003c\/td\u003e\n\u003ctd\u003eVia onboard potentiometer\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eDimensions\u003c\/td\u003e\n\u003ctd\u003e32mm x 14mm\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eMounting Holes\u003c\/td\u003e\n\u003ctd\u003e3mm diameter, two holes\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\u003ch2\u003eWhat You Can Build With This\u003c\/h2\u003e\u003cul\u003e\n\u003cli\u003eAutomatic porch or garden light that turns on at dusk\u003c\/li\u003e\n\u003cli\u003eEnergy-saving corridor lighting for apartment blocks\u003c\/li\u003e\n\u003cli\u003eSunlight alarm that triggers when dawn breaks\u003c\/li\u003e\n\u003cli\u003e\u003ca href=\"\/products\/kit-mini-greenhouse-light-kit\"\u003eSmart greenhouse shade controller based on light intensity\u003c\/a\u003e\u003c\/li\u003e\n\u003c\/ul\u003e\u003ch2\u003eCompatibility\u003c\/h2\u003e\u003cp\u003eWorks directly with any 3.3V or 5V microcontroller board, including Arduino Uno, Nano, ESP8266, and ESP32. The digital output is TTL-compatible, so no level shifting is required for Raspberry Pi GPIO when using 3.3V supply. Commonly paired with a relay module for switching mains-powered lights.\u003c\/p\u003e\u003ch2\u003eWiring Notes\u003c\/h2\u003e\u003cp\u003eConnect VCC to 5V (or 3.3V), GND to GND, and DO to a digital input pin. The onboard potentiometer sets the light threshold—turn clockwise to require more light for the output to go high. The AO pin provides an analog voltage proportional to light intensity; connect to an ADC input for exact readings. No pull-up resistor is needed on the digital output.\u003c\/p\u003e\u003ch2\u003eWhy Buy from Compoden\u003c\/h2\u003e\u003cp\u003eEvery component is sourced from verified suppliers and tested for compatibility before listing. We've spent 10 years building projects for makers, schools, and institutions across India. Ships from Bengaluru in 3-5 days. If defective on arrival, replace within 7 days.\u003c\/p\u003e\u003cdetails\u003e\u003csummary\u003eIs this compatible with Arduino Uno?\u003c\/summary\u003e\u003cp\u003eYes, it works directly with Arduino Uno. Supply 5V and connect the digital output to any I\/O pin; read the state with digitalRead().\u003c\/p\u003e\u003c\/details\u003e\u003cdetails\u003e\u003csummary\u003eHow do I adjust the light threshold?\u003c\/summary\u003e\u003cp\u003eUse a small screwdriver on the blue potentiometer. Turn clockwise to increase the light level needed to trigger, or counterclockwise to make it more sensitive to darkness.\u003c\/p\u003e\u003c\/details\u003e\u003cdetails\u003e\u003csummary\u003eCan this module directly drive a relay?\u003c\/summary\u003e\u003cp\u003eNo, the output current is limited. Use a relay module with a driver transistor or an optocoupler for safe switching of higher loads.\u003c\/p\u003e\u003c\/details\u003e\n\u003cdiv class=\"compoden-handoff\" style=\"margin-top:24px;padding:16px;background:#f0f4ff;border-left:4px solid #2B4D8F;border-radius:4px;\"\u003e\n  \u003cp style=\"margin:0 0 6px 0;font-weight:600;color:#1A3560;\"\u003e📦 Free Setup Handoff Document Included\u003c\/p\u003e\n  \u003cp style=\"margin:0;font-size:0.95em;color:#333;\"\u003eEvery Compoden order includes a free setup handoff document — step-by-step instructions to get your component working within minutes. Download it via QR code on your package. The handoff document is also trained to help you troubleshoot the majority of problems.\u003c\/p\u003e\n\u003c\/div\u003e\n","brand":"Compoden","offers":[{"title":"Default Title","offer_id":53445016584557,"sku":"CDN-0701","price":280.0,"currency_code":"INR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0999\/3997\/5533\/files\/image_1_61e1d0ce-ae09-44ae-9f46-193190c6b1d3.jpg?v=1781512829","url":"https:\/\/compoden.com\/products\/dusk-to-dawn-light-detection-sensor-module-for-home-automation","provider":"Compoden","version":"1.0","type":"link"}