I hope you can help me - I¨m sure it's not too complicated, I just know yet how to ask my Arduino to read it.
So, I'm playing peek-a-boo with my robot (arduino, light sensor and a motor)
and I need to tell my arduino to read that:
If the value of the LDR (which is usually around 600) goes below 100 (for more than 2 sec) and then above 400, it should trigger the motor.
Thanks a bunch,