The differentiated features of postmitotic neurons are dictated by the expression of specific transcription factors. The mechanisms by which the precise spatiotemporal expression patterns of these factors are regulated are poorly understood. In C. elegans, the ceh-36 Otx homeobox gene is expressed in the AWC sensory neurons throughout postembryonic development, and regulates terminal differentiation of this neuronal subtype. Here, we show that the HMX/NKX homeodomain protein MLS-2 regulates ceh-36 expression specifically in the AWC neurons. Consequently, the AWC neurons fail to express neuron type-specific characteristics in mls-2 mutants. mls-2 is expressed transiently in postmitotic AWC neurons, and directly initiates ceh-36 expression. CEH-36 subsequently interacts with a distinct site in its cis-regulatory sequences to maintain its own expression, and also directly regulates the expression of AWC-specific terminal differentiation genes. We also show that MLS-2 acts in additional neuron types to regulate their development and differentiation. Our analysis describes a transcription factor cascade that defines the unique postmitotic characteristics of a sensory neuron subtype, and provides insights into the spatiotemporal regulatory mechanisms that generate functional diversity in the sensory nervous system.