An isolated cell comprising a cellular biosensor system comprising at least one gene (REPRESSOR MODULE IA) comprising 1.1 a promoter sequence, 1.2 a transcriptional activator sequence operably linked to promoter sequence, 1.3 at least one target site for one or more inputs, wherein upon input binding, target site inhibits or represses the expression of the transcriptional activator sequence operably linked to promoter sequence; at least one gene (REPRESSOR MODULE IB) comprising 2.1 a promoter inducible by the activator expressed by transcriptional activator sequence and operably linked to either, (i) a transcriptional repressor sequence and at least one target site for one or more inputs, and/or (ii) one or more repressor sequences encoding at least one repressor microRNA (R-miRNA), wherein upon input binding, target site inhibits or represses the expression of the transcriptional repressor sequence, and wherein the expressed transcriptional repressor and/or the at least one repressor microRNA (R-miRNA) inhibit or repress the expression of at least one output sequence of an output module; at least one gene (OUTPUT MODULE) comprising 3.1 a promoter sequence that is repressible by the product expressed by transcriptional repressor sequence of gene, if gene comprises the transcriptional repressor sequence, 3.2 at least one output sequence, 3.3 at least one sequence(s) enabling gene rearrangement (SEGR) in the presence of at least one site-specific recombinase, 3.4 at least one target site (TmiRNA) for the at least one repressor microRNA (R-miRNA), if gene comprises one or more repressor sequences encoding at least one repressor microRNA (R-miRNA), wherein upon gene rearrangement in the presence of at least one site-specific recombinase, promoter is operably linked to the output sequence 3.2 for generating the output sequence; and at least one gene (RECOMBINASE MODULE) comprising 4.1 at least one promoter, 4.2 a sequence encoding the site-specific recombinase that enables gene rearrangement in gene and operably linked to promoter, 4.3 optionally at least one target site for one or more inputs for inhibiting or repressing the expression of the site-specific recombinase, and 4.4 optionally at least one target site (TmiRNA) for the at least one repressor microRNA (RmiRNA), if gene comprises one or more repressor sequences encoding at least one repressor microRNA (RmiRNA). 1.1 a promoter sequence, 1.2 a transcriptional activator sequence operably linked to promoter sequence, 1.3 at least one target site for one or more inputs, (i) a transcriptional repressor sequence and at least one target site for one or more inputs, and/or (ii) one or more repressor sequences encoding at least one repressor microRNA (R-miRNA), 3.1 a promoter sequence that is repressible by the product expressed by transcriptional repressor sequence of gene, if gene comprises the transcriptional repressor sequence, 3.2 at least one output sequence, 3.3 at least one sequence(s) enabling gene rearrangement (SEGR) in the presence of at least one site-specific recombinase, 3.4 at least one target site (TmiRNA) for the at least one repressor microRNA (R-miRNA), if gene comprises one or more repressor sequences encoding at least one repressor microRNA (R-miRNA), 4.1 at least one promoter, 4.2 a sequence encoding the site-specific recombinase that enables gene rearrangement in gene and operably linked to promoter, 4.3 optionally at least one target site for one or more inputs for inhibiting or repressing the expression of the site-specific recombinase, and 4.4 optionally at least one target site (TmiRNA) for the at least one repressor microRNA (RmiRNA), if gene comprises one or more repressor sequences encoding at least one repressor microRNA (RmiRNA).