Testing the code for sending messages by light pulse.