Posts

Showing posts from April, 2025

Testing the BH1750 Light Sensor with Arduino – Real-Time Lux Response

Image
 After successfully getting the PIR motion sensor working earlier, today's goal was to integrate the BH1750 light sensor and test how well it reads ambient light levels and adjusts an LED's brightness accordingly. The Torchlight Test – Simulating Sudden Brightness The system is designed to keep the light off when it’s bright and turn it on or brighten the LED when it gets darker . Here’s a portion of the actual data output from the Serial Monitor during my test Before I applied the torch test on the light sensor the light level was 254 lux, when I pointed the torch directly on the light sensor the lux levels jumped to 1010,1015... so the BH1750 works and we are ready to go to the next step What This Test Proved The BH1750 is highly sensitive and consistent , tracking even small changes in lux. It provides a reliable basis for automated light control , making sure lights are only used when needed. With lux readings above 300, the system correctly assumed no additional...

PIR Motion Sensor Working! Now Debugging the BH1750 Light Sensor

Image
  I’ve been working on a project that combines a PIR motion sensor and a BH1750 light sensor to create an automatic lighting system. After troubleshooting, I successfully got the PIR motion sensor working , but I’m still working on fully configuring the BH1750 light sensor . The PIR motion sensor detects movement and adjusts the LED brightness accordingly. When motion is detected, the LED brightness increases, and when no motion is present, it dims.  My Serial Monitor confirms this, displaying messages like "Motion Detected! Increasing brightness..." and "No Motion. Dimming lights..." . This means the PIR sensor is responding correctly. However, the BH1750 light sensor is still giving me issues. The Serial Monitor keeps showing "[BH1750] Device is not configured!" , which means the sensor isn’t initializing properly.  Once the BH1750 is fully functional, my project will be able to dynamically adjust light brightness based on both motion and ambient li...