Hi, you could use the output of this command: vcgencmd get_camera When the camera is connected, the output is like this: supported=1 detected=1 I haven't tried disconnecting the camera, but I suppose that if you have the latest firmware, supported will still be 1, but detected should show 0. Hope th...