Created code to read the protocol in arduino.