An onboard cloud detection system comprising: a camera configured to acquire images of the Earth at predetermined acquisition intervals; and a data processing unit comprising: a cloud detection unit configured to use artificial intelligence, AI, algorithms to detect clouds; a packet utilization standard, PUS, application layer configured to issue telemetry and/or telecommands corresponding to a predetermined parameter of the output of the cloud detection unit; and an interface configured to distribute the telemetry and/or telecommands to an external hardware and/or an external software terminal (3000, 4000), wherein the telemetry and/or telecommands are configured to enable and/or disable a main payload directly or via an on-board computer, wherein the enabling and/or disabling of the main payload is configured to be triggered according to the predetermined parameter, wherein the predetermined parameter is a percentage of one of the acquired images covered by clouds, and wherein the main payload is configured to be enabled and/or disabled if the percentage of the image covered by clouds is above or below the predetermined threshold. a camera configured to acquire images of the Earth at predetermined acquisition intervals; and a data processing unit comprising: a cloud detection unit configured to use artificial intelligence, AI, algorithms to detect clouds; a packet utilization standard, PUS, application layer configured to issue telemetry and/or telecommands corresponding to a predetermined parameter of the output of the cloud detection unit; and an interface configured to distribute the telemetry and/or telecommands to an external hardware and/or an external software terminal (3000, 4000), wherein the telemetry and/or telecommands are configured to enable and/or disable a main payload directly or via an on-board computer, wherein the enabling and/or disabling of the main payload is configured to be triggered according to the predetermined parameter, wherein the predetermined parameter is a percentage of one of the acquired images covered by clouds, and wherein the main payload is configured to be enabled and/or disabled if the percentage of the image covered by clouds is above or below the predetermined threshold. a cloud detection unit configured to use artificial intelligence, AI, algorithms to detect clouds; a packet utilization standard, PUS, application layer configured to issue telemetry and/or telecommands corresponding to a predetermined parameter of the output of the cloud detection unit; and an interface configured to distribute the telemetry and/or telecommands to an external hardware and/or an external software terminal (3000, 4000), wherein the telemetry and/or telecommands are configured to enable and/or disable a main payload directly or via an on-board computer, wherein the enabling and/or disabling of the main payload is configured to be triggered according to the predetermined parameter, wherein the predetermined parameter is a percentage of one of the acquired images covered by clouds, and wherein the main payload is configured to be enabled and/or disabled if the percentage of the image covered by clouds is above or below the predetermined threshold.