RC lights

RC lights

so I have built a system that reads the serial input from an RC car receiver and I have gotten it so I can control breaklights/turn signals The design and code is pretty simple however a buddy and I were building the same project on different cars and different receivers and we noticed our serial values were different and if statements needed to be tewaked differently between cars.

My question is is there a way to sniff out the values from any receiver and store them in an array and take averages of the serial input to make this project modular? like anybody could plug in our setup and the arduino finds the values necessary?

nevermind Figured it out