The series of events in which a stimulus from another organism is received and converted into a molecular signal.