PIR Motion Sensor Working! Now Debugging the BH1750 Light Sensor
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 light levels, making it more efficient and responsive. With the PIR motion sensor working.
Comments
Post a Comment