[SmartCam] Update the code to test serial input.