I’m new in this Forum because i stuck with my Project:
I want to get a motorposition with an LDR
while (analogRead(1) < 600)
code is in “void Setup” because i Need this function only one time per start.
I want to turn the Motor an stop it, if the LDR shows values more then 600.
Til now it turns 1 step and stop. While i put the LDR to 600, the next code in “Void Loop” starts up.
whats wrong with my “while”
would be great to have an answer.