For the drone, we coded it such that it would constantly land and take off, and each time it landed it would detect the colors underneath it. If the drone didn't detect red, it would take of again, move forward and then repeat the process until it detected red. If it detects red, it would turn the drone LED red, make a noise, and not take off again.