I was recently trying to do the disk mover challenge for my class. I wanted the code so that if the down sensor picked up blue it stopped and turned on the electromagnet. However it does not work. The monitor senses that it is blue but does not do anything. Any help would be greatly appreciated! My code is attached below.
Your code as is won’t work. Try this:
The reason being, the if is executed once, very quickly at the start of the program but never again.
Or alternatively this:
It works! Thanks so much.