I have done so far a little introduction with Arduino and at this point I have learn something about this pretty cool microcontroller using internet and this forum. I have learned, how connect some sensors, take read from them and control outputs. But now I have stucked with one thing- I try to use photosensor to "see" light level and control relay channel with it to turn the LED on or off. Problem is that, I need to figure out, how to use timer in this situation.
The right path must be like that:
When there is enough of light in the morning, then LED goes for 12 hours on. In the future to avoid a useless burning lights I add one more photosensor to control LED relay during ON-time but now I'm tryig to figure out, how to set up this so called "trigger sensor".
I understand, that in this case I need use millis, because I need to run other functions at the same time.
Could anybody find some time to help me? I have searched for this kind of examples on internet, but doesn't find anything useful for me. I found some similar things with buttons and tried to fit them to my project, but they doesn't worked for me.