Arduino Code for Light Sensor and PIR Sensor Behavior

Hello Arduino Community,

I hope this message finds you well. I am seeking your expertise and assistance in developing an Arduino code for a specific project involving a light sensor and a PIR sensor. I have attempted to create the code myself with some guidance, but I'm encountering challenges in achieving the desired behavior.

Project Description:

During bright times:

Monitor the light sensor reading.

If the environment is bright, start a timer.

When the timer reaches two minutes, activate the LED for one minute, then reset the timer.

During dark times:

Monitor the PIR sensor for movement detection.

If movement is detected, rapidly blink the LED.

I have reached out for help on various platforms, including interacting with AI models like ChatGPT. Unfortunately, I have been facing difficulties in getting the code to work as intended. I believe the Arduino community's expertise and experience would greatly benefit this project.

I kindly request your assistance in providing guidance or even a complete Arduino code that aligns with the project's requirements. Your support would be highly appreciated, as I am doing this project for personal enjoyment and learning.

Thank you in advance for your time and consideration. I look forward to any insights or code examples you may provide.

Best regards,

Maybe if you post your attempt(s) and describe the challenges they present, we can work from that.

@ananada1988,

You were warned in your other topic Subject: Combining PIR Motion Sensor and Soil Moisture Sensor Code about choice of forum category and advised to read the forum guide. Clearly you have not taken any notice of the advice given. I have moved your topic to an appropriate category and given you a 1 day break from the forum to give you time to read and understand the guide.

Please take more care in future, that way you are more likely to get the help you want.

Thanks,

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.