THIS IS THE TRANSMITTER CODE FOR PART 1. WHEN YOU PUSH A BUTTON, IT TURNS THE LIGHT ON ON THE RECEIVING END.
The following code corrects the outputted values in the example code; it takes the corrected color values.