Analyte sensors, methods for producing and using analyte sensors, methods of detecting and/or measuring analyte activity, detecting pH change, and/or, controlling the concentration of an analyte in a system, are disclosed. Embodiments of the analyte sensors according to the disclosure can provide an accurate and convenient method for characterizing analyte activity, detecting pH change, controlling the concentration of an analyte in a system, and the like, in both in vivo and in vitro environments, in particular in living cell imaging.