The invention described herein relates to an RNA-based control device that senses the presence and/or concentration of at least one protein ligand, preferably through its protein-binding aptamer domain, and regulates a target gene expression through alternative splicing of the target gene in which the RNA-based control device is integrated. The device has uses in therapeutic as well as diagnostic applications.