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)