We describe a protocol for cell-type specific expression of the genetically encoded FRET-based sensor ATeam1.03YEMK in organotypic slice cultures of the mouse forebrain. Furthermore, we show how to use this sensor for dynamic imaging of cellular ATP levels in neurons and astrocytes.