added functionality to receive camera data via serial communication