Specificity of sensory neurons requires restricted expression of one sensory receptor gene and the exclusion of all others within a given cell. In the Drosophila retina, functional identity of photoreceptors depends on light-sensitive Rhodopsins (Rhs). The much simpler larval eye (Bolwig organ) is composed of about 12 photoreceptors, eight of which are green-sensitive (Rh6) and four blue-sensitive (Rh5) 1 . The larval eye becomes the adult extraretinal 'eyelet' composed of four greensensitive (Rh6) photoreceptors 2,3 . Here we show that, during metamorphosis, all Rh6 photoreceptors die, whereas the Rh5 photoreceptors switch fate by turning off Rh5 and then turning on Rh6 expression. This switch occurs without apparent changes in the programme of transcription factors that specify larval photoreceptor subtypes. We also show that the transcription factor Senseless (Sens) mediates the very different cellular behaviours of Rh5 and Rh6 photoreceptors. Sens is restricted to Rh5 photoreceptors and must be excluded from Rh6 photoreceptors to allow them to die at metamorphosis. Finally, we show that Ecdysone receptor (EcR) functions autonomously both for the death of larval Rh6 photoreceptors and for the sensory switch of Rh5 photoreceptors to express Rh6. This fate switch of functioning, terminally differentiated neurons provides a novel, unexpected example of hard-wired sensory plasticity.The adult Drosophila eyelet comprises approximately four photoreceptors located between the retina and the optic ganglia 2 . It directly contacts the pacemaker neurons of the adult fly, the lateral neurons 4 . In conjunction with the compound eye and the clock-neuron intrinsic bluesensitive receptor cryptochrome 3 it helps shift the phase of the molecular clock in response to light. All eyelet photoreceptors express green-sensitive Rh6, and are derived from photoreceptors of the larval eye 2,5,6 that mediate light avoidance and entrainment of the molecular clock by innervating the larval lateral neurons 7-9 .Larval photoreceptors develop in a two-step process during embryogenesis 1,10 . Primary precursors are specified first and develop as the four Rh5-subtype photoreceptors. They signal through Epidermal growth factor receptor (EGFR) to the surrounding tissue to develop as secondary precursors, which develop into the eight Rh6-subtype photoreceptors 1 . Two transcription factors specify larval photoreceptor subtypes 1 . Spalt (Sal) is exclusively expressed in Rh5 photoreceptors, where it is required for Rh5 expression. Seven-up (Svp) is restricted to Rh6 photoreceptors, where it represses sal and promotes Rh6 expression. A third