The series of events in which an endogenous stimulus is received by a cell and converted into a molecular signal.