Help with code

Hey, im kind of a newbie when it comes to code, and i have a project at school where the teacher is kind of noob aswell, so he didnt know the answer to this problem. The problem is related to that i cant make the values of photoresistor determin if the diode is going to be turned on or off while the secondary code is running.

trafikklysinnlevering_1.4.ino (5.61 KB)

Why did you post in the Scandinavian forum?

Och vänligen skicka din kod infogad i ditt meddelande, använd </>, i stället för att bifoga en .ino-fil. Jag kan inte läsa filen på min telefon.